diff options
author | midipix <writeonce@midipix.org> | 2020-08-16 05:56:07 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2020-08-16 18:04:01 +0000 |
commit | 2c1b5b595f287239865175dbe6af7aaf8f56a0ae (patch) | |
tree | 4ee3c21992745d5d33bf3c8eff735b67696f7896 /sofort/ccenv | |
parent | 9073eefa6e336c863dac94cadd4b05476cc49e8d (diff) | |
download | ntcon-2c1b5b595f287239865175dbe6af7aaf8f56a0ae.tar.bz2 ntcon-2c1b5b595f287239865175dbe6af7aaf8f56a0ae.tar.xz |
build system: ccenv: ccenv_find_tool(): further accommodate legacy shells.
Diffstat (limited to 'sofort/ccenv')
-rw-r--r-- | sofort/ccenv/ccenv.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sofort/ccenv/ccenv.sh b/sofort/ccenv/ccenv.sh index a376eb7..b8a9219 100644 --- a/sofort/ccenv/ccenv.sh +++ b/sofort/ccenv/ccenv.sh @@ -122,7 +122,9 @@ ccenv_find_tool() { if [ -z "$ccenv_prefixes" ]; then for ccenv_candidate in $(printf '%s' "$ccenv_candidates"); do - if [ -z ${@:-} ]; then + ccenv_cmd_args="${@:-}" + + if [ -z "$ccenv_cmd_args" ]; then if command -v "$ccenv_candidate" > /dev/null; then ccenv_tool="$ccenv_candidate" return 0 |