diff options
author | Christophe Lyon <christophe.lyon@linaro.org> | 2017-01-10 10:44:53 +0100 |
---|---|---|
committer | Yvan Roux <yvan.roux@linaro.org> | 2017-01-10 14:33:38 +0000 |
commit | 445fbe9a50c7d15d4591bb26b133093a4f7d3933 (patch) | |
tree | 068480ab0d89a6241ef19682444d71a7d99cb8e3 /backflip | |
parent | ee3379c11f6ae79111252d98387b11affccfc3d4 (diff) |
Print rev number that failed to backport when running in non-interactive mode.
Change-Id: Ib9a27a69c4cebdf37c9e9bf4001633520debf3d6
Diffstat (limited to 'backflip')
-rwxr-xr-x | backflip | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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 # ============================================================================== |