1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

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

This commit is contained in:
Stoned Elipot 2013-06-23 15:32:45 +02:00
parent 64995bfc22
commit 6d2e94966c

View file

@ -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%/*};;