From d3b28199e9b1137d57c53eb281b345e0b5ca860e Mon Sep 17 00:00:00 2001 From: Nicholas Date: Thu, 28 Oct 2021 18:55:57 -0700 Subject: [PATCH] AHHHHHHHHHHHH very simple solution --- archtitus.sh | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/archtitus.sh b/archtitus.sh index 5f1f187..7073498 100644 --- a/archtitus.sh +++ b/archtitus.sh @@ -3,18 +3,9 @@ # 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 - ME=$0 -fi -dir=$(dirname $ME) - -export SCRIPTHOME="$(basename -- $dir)" +export SCRIPTHOME="$(basename -- $PWD)" echo "Scripts are in dir named $SCRIPTHOME" cd $PWD