AHHHHHHHHHHHH very simple solution
This commit is contained in:
parent
f72b9a5699
commit
d3b28199e9
11
archtitus.sh
11
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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue