summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2020-08-16 05:56:07 +0000
committermidipix <writeonce@midipix.org>2020-08-16 18:04:08 +0000
commitb135b5ae7584e32ea81c87415a522aa3d04be11d (patch)
treee6ba89773c3343c1f7c21a7bbe11e1a153f6d48d
parent2b0276f98dd70ae2adc85060cacc3152743d122e (diff)
downloadw32lib-b135b5ae7584e32ea81c87415a522aa3d04be11d.tar.bz2
w32lib-b135b5ae7584e32ea81c87415a522aa3d04be11d.tar.xz
build system: ccenv: ccenv_find_tool(): further accommodate legacy shells.
-rw-r--r--sofort/ccenv/ccenv.sh4
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