summaryrefslogtreecommitdiff
path: root/sofort/ccenv
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:04 +0000
commitaccdd44c68675bc28dcda89bb08dcb063547b021 (patch)
tree4c9ce7e819ee6b6449a0c16e5155060d73c5edad /sofort/ccenv
parentc037c0b7d2f55b158f1a3b26b2ce86f709345d67 (diff)
downloadsbpython2-accdd44c68675bc28dcda89bb08dcb063547b021.tar.bz2
sbpython2-accdd44c68675bc28dcda89bb08dcb063547b021.tar.xz
build system: ccenv: ccenv_find_tool(): further accommodate legacy shells.
Diffstat (limited to 'sofort/ccenv')
-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