Fix $PROGRAM variable not taking the program name

This commit is contained in:
Ethan P 2019-09-25 13:16:29 -07:00
parent a1cf0eca18
commit 6e8959b1d6
No known key found for this signature in database
GPG Key ID: 6963FD04F6CF35EA

View File

@ -5,7 +5,7 @@
# Repository: https://github.com/eth-p/bat-extras
# Issues: https://github.com/eth-p/bat-extras/issues
# -----------------------------------------------------------------------------
PROGRAM="$(basename "${BASH_SOURCE[0]}")"
PROGRAM="$(basename "$0" .sh)"
# Sets the internal _ARGV, _ARGV_INDEX, and _ARGV_LAST variables used when
# parsing options with the shiftopt and shiftval functions.