Make config install script independent of path

This commit is contained in:
exu 2023-11-17 19:43:41 +01:00
parent 34e79bcb77
commit 6c9c9d5b8c

View File

@ -3,12 +3,13 @@ set -euo pipefail
#DO NOT MAKE CHANGES TO THE INSTALL SCRIPT HERE. USE arch-config.sh IN ~/scripts FOR THAT #DO NOT MAKE CHANGES TO THE INSTALL SCRIPT HERE. USE arch-config.sh IN ~/scripts FOR THAT
#change to home (does not show in terminal) # get script directory
cd $HOME scriptloc="$BASH_SOURCE"
configdir=$(dirname "$scriptloc")
echo Launching arch-config.sh echo Launching arch-config.sh
#make executable & launch arch-config.sh #make executable & launch arch-config.sh
chmod +x ~/configs/arch-config/scripts/arch-config.sh chmod +x "$configdir/scripts/arch-config.sh"
bash ~/configs/arch-config/scripts/arch-config.sh bash "$configdir/scripts/arch-config.sh"
exit 0 exit 0