diff options
author | Toshio Kuratomi <toshio@fedoraproject.org> | 2015-03-15 21:22:07 +0100 |
---|---|---|
committer | Toshio Kuratomi <toshio@fedoraproject.org> | 2015-03-15 21:22:07 +0100 |
commit | caf2a96ef9808436f00522b7792a3541301d90eb (patch) | |
tree | 4051bc63312f18e8be69f778c1a5adb3e320af65 /v2/hacking/env-setup | |
parent | Merge pull request #10466 from eest/env-setup_pdksh (diff) | |
download | ansible-caf2a96ef9808436f00522b7792a3541301d90eb.tar.xz ansible-caf2a96ef9808436f00522b7792a3541301d90eb.zip |
Merge pdksh fix to v2
Diffstat (limited to 'v2/hacking/env-setup')
-rw-r--r-- | v2/hacking/env-setup | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/v2/hacking/env-setup b/v2/hacking/env-setup index fed8e892fd..c03fa0874e 100644 --- a/v2/hacking/env-setup +++ b/v2/hacking/env-setup @@ -16,7 +16,8 @@ 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 +# Works with ksh93 but not pdksh +elif [ -n "$KSH_VERSION" ] && echo $KSH_VERSION | grep -qv '^@(#)PD KSH'; then HACKING_DIR=$(dirname "${.sh.file}") else HACKING_DIR="$PWD/hacking" |