Handle login shell bash processes hence match $0 with "*bash"

pull/3322/head
Stoned Elipot 11 years ago
parent 64995bfc22
commit 6d2e94966c

@ -7,7 +7,7 @@
# When run using source as directed, $0 gets set to bash, so we must use $BASH_SOURCE
case "$0" in
(bash)
(*bash)
HACKING_DIR=${BASH_SOURCE%/*};;
(*)
HACKING_DIR=${0%/*};;

Loading…
Cancel
Save