Make config install script independent of path
This commit is contained in:
parent
34e79bcb77
commit
6c9c9d5b8c
@ -3,12 +3,13 @@ set -euo pipefail
|
||||
|
||||
#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)
|
||||
cd $HOME
|
||||
# get script directory
|
||||
scriptloc="$BASH_SOURCE"
|
||||
configdir=$(dirname "$scriptloc")
|
||||
|
||||
echo Launching arch-config.sh
|
||||
|
||||
#make executable & launch arch-config.sh
|
||||
chmod +x ~/configs/arch-config/scripts/arch-config.sh
|
||||
bash ~/configs/arch-config/scripts/arch-config.sh
|
||||
chmod +x "$configdir/scripts/arch-config.sh"
|
||||
bash "$configdir/scripts/arch-config.sh"
|
||||
exit 0
|
||||
|
Loading…
Reference in New Issue
Block a user