diff options
author | midipix <writeonce@midipix.org> | 2020-08-16 05:56:07 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2020-08-16 18:03:57 +0000 |
commit | 2bd1afde76432c8c7b68a9ea769d2589d2327b2c (patch) | |
tree | a787d58a772696f2d2346917f78e7aa5921f8047 | |
parent | 96c4cbd9f21b2dd83dee3234724508dcc308fe8d (diff) | |
download | bcparser-2bd1afde76432c8c7b68a9ea769d2589d2327b2c.tar.bz2 bcparser-2bd1afde76432c8c7b68a9ea769d2589d2327b2c.tar.xz |
build system: ccenv: ccenv_find_tool(): further accommodate legacy shells.
-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 |