Add __base magic var

This commit is contained in:
Kevin van Zonneveld
2016-02-16 21:58:25 +01:00
parent 5b4800bad8
commit 2196cc4411
2 changed files with 3 additions and 0 deletions

View File

@ -63,6 +63,7 @@ For more information on SemVer, please visit [http://semver.org](http://semver.o
- More refined colors (thanks @arathai)
- Add Changelog
- Add `__base` magic var
- Enable long, GNU style options (thanks @zbeekman)
### v1.1.0 (2015-06-29)

View File

@ -54,6 +54,8 @@ EOF
# If you need the script that was executed, consider using $0 instead.
__dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
__file="${__dir}/$(basename "${BASH_SOURCE[0]}")"
__base="$(basename ${__file} .sh)"
### Functions