summaryrefslogtreecommitdiffstats
path: root/abump.in
diff options
context:
space:
mode:
Diffstat (limited to 'abump.in')
-rwxr-xr-xabump.in12
1 files changed, 9 insertions, 3 deletions
diff --git a/abump.in b/abump.in
index b0994ed..2b0ca01 100755
--- a/abump.in
+++ b/abump.in
@@ -18,7 +18,7 @@ fi
# version bump packages
do_bump() {
- local p rc=0 name ver section message
+ local p rc=0 errors=0 failed= name ver section message
local upgrade="${cvelist:+security }upgrade"
local a
for p; do
@@ -64,9 +64,15 @@ fixes #${fixes#\#}
git add APKBUILD
git commit -m"$message"
)
- rc=$(( $rc + $? ))
+ if [ $? -ne 0 ]; then
+ errors=$(( $errors + 1 ))
+ failed="$failed $p"
+ fi
done
- return $rc
+ if [ -n "$failed" ]; then
+ error "Failed: $failed"
+ fi
+ return $errors
}
usage() {