mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-01-29 09:32:55 +00:00
Merge pull request #191 from ublue-os/fix-justfile
fix(user-setup): Ensure user always has working justfile
This commit is contained in:
commit
654a7357b3
@ -1,6 +1,23 @@
|
||||
#!/usr/bin/env bash
|
||||
source /etc/default/bazzite
|
||||
|
||||
if [[ -f "${HOME}/.justfile" ]]; then
|
||||
if grep -Eqvz "main|nvidia|custom" "${HOME}/.justfile"; then
|
||||
mv "${HOME}/.justfile" "${HOME}/.justfile.old"
|
||||
cd /usr/share/ublue-os/just
|
||||
for justfile in *.just; do
|
||||
echo "!include ${PWD}/${justfile}" >> "${HOME}/.justfile"
|
||||
done
|
||||
cd ~
|
||||
fi
|
||||
else
|
||||
cd /usr/share/ublue-os/just
|
||||
for justfile in *.just; do
|
||||
echo "!include ${PWD}/${justfile}" >> "${HOME}/.justfile"
|
||||
done
|
||||
cd ~
|
||||
fi
|
||||
|
||||
if [[ $BASE_IMAGE_NAME =~ "kinoite" ]]; then
|
||||
echo 'Running setup for Kinoite'
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user