summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Lyon <christophe.lyon@linaro.org>2017-01-10 10:44:53 +0100
committerYvan Roux <yvan.roux@linaro.org>2017-01-10 14:33:38 +0000
commit445fbe9a50c7d15d4591bb26b133093a4f7d3933 (patch)
tree068480ab0d89a6241ef19682444d71a7d99cb8e3
parentee3379c11f6ae79111252d98387b11affccfc3d4 (diff)
Print rev number that failed to backport when running in non-interactive mode.
Change-Id: Ib9a27a69c4cebdf37c9e9bf4001633520debf3d6
-rwxr-xr-xbackflip9
1 files changed, 9 insertions, 0 deletions
diff --git a/backflip b/backflip
index fd8e012..f9a6253 100755
--- a/backflip
+++ b/backflip
@@ -138,6 +138,11 @@ clean() {
echo -e "INTERACTIVE MODE COMMAND LINE TO REPRODUCE AND/OR FIX THE ISSUE:"
echo -e "$0 -v $VERSION -b $DEV_BRANCH -r $REF_BRANCH $RARGS"
echo -e "${lines}"
+
+ if ! $INTERACTIVE; then
+ exec 1>&3 2>&4
+ echo -e "Failed to backport rev $REV"
+ fi
fi
exit $1
}
@@ -164,6 +169,10 @@ if $INTERACTIVE; then
fi
fi
+if ! $INTERACTIVE; then
+ exec 3>&1 4>&2
+fi
+
# ==============================================================================
# Check that all the requested backports are available
# ==============================================================================