mkarchroot: return 0 if there was no package to update in SyncFirst

This commit is contained in:
Pierre Schmitz 2011-01-08 17:29:56 +01:00
parent 95afa2e495
commit bcf8cd7eb1
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ usage() {
while getopts 'r:ufnhC:M:c:' arg; do
case "${arg}" in
r) RUN="$OPTARG" ;;
u) RUN='/bin/sh -c "pacman -Syu --noconfirm; pacman -Qqu >/dev/null && pacman -Su --noconfirm"' ;;
u) RUN='/bin/sh -c "pacman -Syu --noconfirm && (pacman -Qqu >/dev/null && pacman -Su --noconfirm || exit 0)"' ;;
f) FORCE='y' ;;
C) pac_conf="$OPTARG" ;;
M) makepkg_conf="$OPTARG" ;;