Merge pull request #3322 from stoned/hacking-env-setup
Handle login shell bash processes hence match $0 with "*bash"
This commit is contained in:
commit
da34aec0fe
1 changed files with 1 additions and 1 deletions
|
@ -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%/*};;
|
||||||
|
|
Loading…
Reference in a new issue