From 6a4bc45f9002c6d33baa71f1f75ea7c36462cb03 Mon Sep 17 00:00:00 2001 From: Jan-Tarek Butt Date: Sat, 14 Dec 2019 17:30:03 +0100 Subject: [PATCH] scripts/features.sh: rm accidentally pushed set -A & quote whole string --- scripts/features.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/features.sh b/scripts/features.sh index 2325eb81..1d7184ee 100755 --- a/scripts/features.sh +++ b/scripts/features.sh @@ -34,7 +34,7 @@ sanitize() { vars=() for feature in $1; do - if [ "$(type -t gluon_feature_nodefault_"${feature}")" != 'function' ]; then + if [ "$(type -t "gluon_feature_nodefault_${feature}")" != 'function' ]; then echo "gluon-${feature}" fi @@ -58,9 +58,7 @@ packages() { # Let will return false when the result of the passed expression is 0, # so we always add 1. This way false is only returned for syntax errors. - set -A local ret="$(env -i "${vars[@]}" bash --norc -ec "let _result_='1+($cond)'; echo -n \"\$_result_\"" 2>/dev/null)" - set +A case "$ret" in 2) for pkg in "$@"; do