Fix regression that broke repo-add aborting on failures
In commitcb0f2bd038
the changes from commit81d233b793
seem to have been inadvertently backed out. Right now the current check doesn't do anything, since "fail" is always nothing and therefore successful. Fixes FS#58505 Signed-off-by: Eli Schwartz <eschwartz@archlinux.org> Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
1741bdaf81
commit
0d356c27c1
1 changed files with 2 additions and 1 deletions
|
@ -811,11 +811,12 @@ fi
|
|||
|
||||
prepare_repo_db
|
||||
|
||||
fail=0
|
||||
for arg in "${args[@]:1}"; do
|
||||
case $cmd in
|
||||
repo-add) add "$arg" ;;
|
||||
repo-remove) remove "$arg" ;;
|
||||
esac && success=1
|
||||
esac || fail=1
|
||||
done
|
||||
|
||||
# if the whole operation was a success, re-zip and rotate databases
|
||||
|
|
Loading…
Add table
Reference in a new issue