diff options
Diffstat (limited to 'abump.in')
-rwxr-xr-x | abump.in | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -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() { |