From 0b7fc89199b880b391e009b36eba97a37220f157 Mon Sep 17 00:00:00 2001 From: midipix Date: Jan 13 2021 04:52:46 +0000 Subject: build system: ccenv: ccenv_find_tool(): further accommodate legacy shells. --- 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