aboutsummaryrefslogtreecommitdiff
path: root/abe.sh
diff options
context:
space:
mode:
authorChristophe Lyon <christophe.lyon@linaro.org>2016-02-02 23:29:08 +0100
committerChristophe Lyon <christophe.lyon@linaro.org>2016-02-02 23:29:08 +0100
commit8fca7c9b31485bf35f159eb44642798a8bfc2a48 (patch)
treeadf315693f0e49779fb1d9dacc9aad3bee7463b1 /abe.sh
parentfb81d31e3cb8fba013663c42189d37e24a5146ab (diff)
Quote argument of --set.
This is needed in case we pass space-separated options. For instance when using --set 'runtestflags=-v -v'. Change-Id: Ic0145e68197784b5557eaa99373db2bc84d5bb2d
Diffstat (limited to 'abe.sh')
-rwxr-xr-xabe.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/abe.sh b/abe.sh
index 3a5d494d..13470503 100755
--- a/abe.sh
+++ b/abe.sh
@@ -916,14 +916,14 @@ while test $# -gt 0; do
shift
;;
--set*|-set*)
- check_directive $1 set "set" $2
+ check_directive $1 set "set" "$2"
# Test if --target follows the --set command put --set and it's
# directive on to the back of the inputs. This is because clibrary
# validity depends on the target.
if test "`echo $@ | grep -c "\-targ.*"`" -gt 0; then
# Push $1 and $2 onto the back of the inputs for later processing.
- set -- $@ $1 $2
+ set -- "$@" "$1" "$2"
# Shift off them off the front.
shift 2;
continue;