improved script path detection for future improvement
This commit is contained in:
1 parent
976b0d4e19
commit
0ed780d80d
1 file changed
+2
-2
@@ -38,8 +38,8 @@ export LANG=C
|
|||||||
# Version of init
|
# Version of init
|
||||||
export VERSION="0.99.8"
|
export VERSION="0.99.8"
|
||||||
|
|
||||||
# Store script's path
|
# Store script's path (realpath -s resolve symlinks if init.sh is a symlink)
|
||||||
export MYPATH=$(dirname $0)
|
export MYPATH=$(dirname $(realpath -s $0))
|
||||||
|
|
||||||
# Get hostname
|
# Get hostname
|
||||||
export HOSTNAME=$(hostname)
|
export HOSTNAME=$(hostname)
|
||||||
|
|||||||
Reference in new issue
Block a user