summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Lyon <christophe.lyon@linaro.org>2015-10-16 15:31:27 +0200
committerChristophe Lyon <christophe.lyon@linaro.org>2015-10-16 15:35:06 +0200
commit3e98a949164c276db724b23ca077b5f5f7cec425 (patch)
tree66a118cf73d6d29a64879e3660e85904dbfbc73f
parentfef64623a2f4bffd91374cd7626a7bd24a9ddfd8 (diff)
Do not prompt for comparison tool if not in interactive mode.
Change-Id: I89dbea3116a518b4e60dd5266a7db3887adcb327
-rwxr-xr-xbackflip8
1 files changed, 5 insertions, 3 deletions
diff --git a/backflip b/backflip
index a0bde9c..3b80b38 100755
--- a/backflip
+++ b/backflip
@@ -157,9 +157,11 @@ port=29418
project=toolchain/gcc
EOF
fi
-if ! which $CMPTOOL > /dev/null ; then
- print_info "Default comparison tool is missing"
- ask "Enter tool name: " CMPTOOL
+if $INTERACTIVE; then
+ if ! which $CMPTOOL > /dev/null ; then
+ print_info "Default comparison tool is missing"
+ ask "Enter tool name: " CMPTOOL
+ fi
fi
mkdir $TMPDIR