From f72b9a56995477f71a900277928aa44cb7d32032 Mon Sep 17 00:00:00 2001 From: Nicholas Date: Thu, 28 Oct 2021 13:55:23 -0700 Subject: [PATCH] Potential Solution to Scripthome var getting . as its value (but i hate it) --- archtitus.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/archtitus.sh b/archtitus.sh index c8f7274..5f1f187 100644 --- a/archtitus.sh +++ b/archtitus.sh @@ -3,7 +3,10 @@ # Find the name of the folder the scripts are in # X! Still erroring out, doesnt get the directory no matter what. +# Found potential Solution +# I hate it +cd / if [ -L $0 ] ; then ME=$(readlink $0) else @@ -13,6 +16,7 @@ dir=$(dirname $ME) export SCRIPTHOME="$(basename -- $dir)" echo "Scripts are in dir named $SCRIPTHOME" +cd $PWD bash 0-preinstall.sh arch-chroot /mnt /root/$SCRIPTHOME/1-setup.sh