summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2017-11-23 13:06:03 +0100
committerGuido Günther <agx@sigxcpu.org>2017-11-23 13:07:28 +0100
commitf32d0441063b67cb846d08760a6a797e2a1ea07a (patch)
treeec11c06dba3d96bb0366f939752a7a56a29f0243
parentca86c5fba8d70e9ea5e06f47f9ec5aa284a23dd0 (diff)
gbp-try-ff: fail on uscan problems
Gbp-Dch: Ignore
-rwxr-xr-xexamples/gbp-try-ff4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/gbp-try-ff b/examples/gbp-try-ff
index 5f14b44b..627ba643 100755
--- a/examples/gbp-try-ff
+++ b/examples/gbp-try-ff
@@ -14,8 +14,12 @@ set +e
gbp import-orig --uscan --no-interactive --no-pristine-tar
ret=$?
set -e
+# no new version found
if [ $ret = 4 ]; then
exit 0
+# all other errors
+elif [ $ret != 0 ]; then
+ exit $ret
fi
if ! gbp pq rebase; then