From 6e8959b1d600bd248524201563d7393bba87a394 Mon Sep 17 00:00:00 2001 From: Ethan P Date: Wed, 25 Sep 2019 13:16:29 -0700 Subject: [PATCH] Fix $PROGRAM variable not taking the program name --- lib/opt.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/opt.sh b/lib/opt.sh index 5cbebf1..7184355 100644 --- a/lib/opt.sh +++ b/lib/opt.sh @@ -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.