diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2011-01-08 17:29:56 +0100 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2011-01-08 17:29:56 +0100 |
commit | bcf8cd7eb1c222064de9fc19b06ca6f511bc1f04 (patch) | |
tree | 9497c062283e15445c9ec6edc9b80b84b6bf16b7 | |
parent | 95afa2e49570e6059e5d9aa397fe944ea802f02e (diff) | |
download | devtools-bcf8cd7eb1c222064de9fc19b06ca6f511bc1f04.tar.gz devtools-bcf8cd7eb1c222064de9fc19b06ca6f511bc1f04.tar.xz |
mkarchroot: return 0 if there was no package to update in SyncFirst
-rwxr-xr-x | mkarchroot | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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" ;; |