Skip to content

Commit 7e86907

Browse files
committed
sum-and-commit.sh: improve error handling
1 parent 5999514 commit 7e86907

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: sum-and-commit.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ sumAndCommit() {
4444
log "[$pkg] Updated to $pkgVer"
4545

4646
log "[$pkg] Updating checksum ..."
47-
abbs-update-checksum "$pkg"
47+
if ! abbs-update-checksum "$pkg"; then
48+
return 1
49+
fi
4850

4951
log "[$pkg] Committing ..."
5052
git add "$pkgDir"

0 commit comments

Comments
 (0)