chore: Remove .justfile creation

The justfiles conflict with eachother if they have functions of the same name, and the first function of them sorted alphabetically acts as as default when running `just`, this means each can't use the 'default' name for their top function, and we unfortunately just need to ship our own.
This commit is contained in:
Kyle Gospodnetich 2023-09-15 00:37:38 -07:00
parent 1e1437a222
commit 5b4c7a85cf

View File

@ -1,23 +1,6 @@
#!/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'
@ -97,8 +80,12 @@ else
gsettings set org.gnome.settings-daemon.plugins.power power-button-action "suspend"
echo 'Setting up templates'
ln -s /etc/vkBasalt.conf $HOME/Templates/vkBasalt.conf
ln -s /etc/dxvk-example.conf $HOME/Templates/dxvk.conf
if [[ ! -f "$HOME/Templates/vkBasalt.conf" ]]; then
ln -s /etc/vkBasalt.conf $HOME/Templates/vkBasalt.conf
fi
if [[ ! -f "$HOME/Templates/dxvk.conf" ]]; then
ln -s /etc/dxvk-example.conf $HOME/Templates/dxvk.conf
fi
echo 'Tweaking GNOME indexer'
mkdir -p $HOME/.steam