mirror of
https://github.com/kvz/bash3boilerplate.git
synced 2025-05-03 00:42:49 +00:00
Consistently enclose vars
This commit is contained in:
parent
71f487ae47
commit
1ec58a1671
2
main.sh
2
main.sh
@ -28,7 +28,7 @@ read -r -d '' usage <<-'EOF'
|
|||||||
EOF
|
EOF
|
||||||
|
|
||||||
# Set magic variables for current FILE & DIR
|
# Set magic variables for current FILE & DIR
|
||||||
__FILE__="$(test -L "$0" && readlink "$0" || echo "$0")"
|
__FILE__="$(test -L "${0}" && readlink "${0}" || echo "${0}")"
|
||||||
__DIR__="$(cd "$(dirname "${__FILE__}")"; echo $(pwd);)"
|
__DIR__="$(cd "$(dirname "${__FILE__}")"; echo $(pwd);)"
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user