From 34e79bcb7768ceeea1be3b1b0b43ee04dd89041e Mon Sep 17 00:00:00 2001 From: exu Date: Fri, 17 Nov 2023 19:39:23 +0100 Subject: [PATCH] Also use scriptloc on the originating script --- arch-config/scripts/arch-config.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch-config/scripts/arch-config.sh b/arch-config/scripts/arch-config.sh index 74206cdf..61dbe12b 100755 --- a/arch-config/scripts/arch-config.sh +++ b/arch-config/scripts/arch-config.sh @@ -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