mirror of
https://github.com/kvz/bash3boilerplate.git
synced 2025-06-21 06:52:11 +00:00
Add __base
magic var
This commit is contained in:
@ -63,6 +63,7 @@ For more information on SemVer, please visit [http://semver.org](http://semver.o
|
|||||||
|
|
||||||
- More refined colors (thanks @arathai)
|
- More refined colors (thanks @arathai)
|
||||||
- Add Changelog
|
- Add Changelog
|
||||||
|
- Add `__base` magic var
|
||||||
- Enable long, GNU style options (thanks @zbeekman)
|
- Enable long, GNU style options (thanks @zbeekman)
|
||||||
|
|
||||||
### v1.1.0 (2015-06-29)
|
### v1.1.0 (2015-06-29)
|
||||||
|
2
main.sh
2
main.sh
@ -54,6 +54,8 @@ EOF
|
|||||||
# If you need the script that was executed, consider using $0 instead.
|
# If you need the script that was executed, consider using $0 instead.
|
||||||
__dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
__dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||||
__file="${__dir}/$(basename "${BASH_SOURCE[0]}")"
|
__file="${__dir}/$(basename "${BASH_SOURCE[0]}")"
|
||||||
|
__base="$(basename ${__file} .sh)"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Functions
|
### Functions
|
||||||
|
Reference in New Issue
Block a user