mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-02-21 18:40:00 +00:00
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:
parent
1e1437a222
commit
5b4c7a85cf
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user