Fix handling of parameters that are not set by any flavour for eval_run_d.

This commit is contained in:
Robert Collins 2012-11-12 13:45:57 +13:00
parent 40e954735c
commit 4c3c7ea9ba
2 changed files with 4 additions and 3 deletions

View File

@ -2,7 +2,6 @@
# Add the stack user we recommend folk use. # Add the stack user we recommend folk use.
set -e set -e
set -x
if (( '16' '>' $IMAGE_SIZE )); then if (( '16' '>' $IMAGE_SIZE )); then
echo IMAGE_SIZE=16 echo IMAGE_SIZE=16

View File

@ -40,6 +40,8 @@ function check_flavour () {
function eval_run_d () { function eval_run_d () {
local TEMP=`run_d $1` local TEMP=`run_d $1`
echo "$TEMP" echo "$TEMP"
if [ `echo "$TEMP" | grep -s "$2"` ]; then
TEMP=`echo "$TEMP" | grep "$2"` TEMP=`echo "$TEMP" | grep "$2"`
eval "$TEMP" eval "$TEMP"
fi
} }