Also use scriptloc on the originating script

This commit is contained in:
exu 2023-11-17 19:39:23 +01:00
parent 593ab719e8
commit 34e79bcb77

View File

@ -67,7 +67,7 @@ git clone https://gitea.exu.li/realstickman/configs.git &>/dev/null
# NOTE Arguments get passed automatically now
if ! cmp --silent "$scriptloc" "$HOME/configs/arch-config/scripts/arch-config.sh"; then
echo Removed old config file and launched new one.
rm "$HOME/scripts/arch-config.sh" && cp "$HOME/configs/arch-config/scripts/arch-config.sh" "$HOME/scripts/" && bash ~/scripts/arch-config.sh "$@"
rm "$scriptloc" && cp "$HOME/configs/arch-config/scripts/arch-config.sh" "$HOME/scripts/" && bash ~/scripts/arch-config.sh "$@"
fi
# if no seltheme file exists, ask to select a theme