Commit 6d2e9496 by Stoned Elipot

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

parent 64995bfc
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
# When run using source as directed, $0 gets set to bash, so we must use $BASH_SOURCE # When run using source as directed, $0 gets set to bash, so we must use $BASH_SOURCE
case "$0" in case "$0" in
(bash) (*bash)
HACKING_DIR=${BASH_SOURCE%/*};; HACKING_DIR=${BASH_SOURCE%/*};;
(*) (*)
HACKING_DIR=${0%/*};; HACKING_DIR=${0%/*};;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment