Use BASH_SOURCE[0]

This commit is contained in:
Kevin van Zonneveld 2014-11-11 12:41:18 +01:00
parent 2f4e089311
commit 5b8cf352c8

View File

@ -38,7 +38,7 @@ EOF
# Set magic variables for current FILE & DIR
__dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
__file="${__dir}/$(basename "${0}")"
__file="${__dir}/$(basename "${BASH_SOURCE[0]}")"
### Functions