mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
env-setup: Don't use ${.sh.file} if shell is pdksh
The default ksh in OpenBSD throws the following error: === $ . hacking/env-setup ksh: hacking/env-setup[23]: ${.sh.file}": bad substitution [...] === The same error can be seen on Linux if pdksh is used.
This commit is contained in:
parent
22304afd1d
commit
731b268cd6
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ if [ -n "$BASH_SOURCE" ] ; then
|
|||
HACKING_DIR=$(dirname "$BASH_SOURCE")
|
||||
elif [ $(basename -- "$0") = "env-setup" ]; then
|
||||
HACKING_DIR=$(dirname "$0")
|
||||
elif [ -n "$KSH_VERSION" ]; then
|
||||
elif [ -n "$KSH_VERSION" ] && echo $KSH_VERSION | grep -qv '^@(#)PD KSH'; then
|
||||
HACKING_DIR=$(dirname "${.sh.file}")
|
||||
else
|
||||
HACKING_DIR="$PWD/hacking"
|
||||
|
|
Loading…
Reference in a new issue