From 2ee39a346c7a36095fc8c81de918ab1bef919a00 Mon Sep 17 00:00:00 2001 From: exu Date: Fri, 8 Dec 2023 19:51:45 +0100 Subject: [PATCH] Correctly launch new config --- arch-config/scripts/arch-config.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch-config/scripts/arch-config.sh b/arch-config/scripts/arch-config.sh index dc386eb5..35e71f52 100755 --- a/arch-config/scripts/arch-config.sh +++ b/arch-config/scripts/arch-config.sh @@ -74,9 +74,9 @@ git clone -b temporary-dir https://gitea.exu.li/realstickman/configs.git &>/dev/ # check if the install scripts are the same # NOTE Arguments get passed automatically now -if ! cmp --silent "$scriptloc" "$HOME/configs/arch-config/scripts/arch-config.sh"; then +if ! cmp --silent "$scriptloc" "$HOME/scripts/arch-config.sh"; then echo Removed old config file and launched new one. - rm "$scriptloc" && cp "$HOME/configs/arch-config/scripts/arch-config.sh" "$HOME/scripts/" && bash ~/scripts/arch-config.sh "$@" + rm "$scriptloc" && cp "$tempdir/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