Simplify update call as pacman does no longer support SyncFirst
This commit is contained in:
parent
4bcafd9768
commit
71b15aafb6
|
@ -38,7 +38,7 @@ usage() {
|
||||||
while getopts 'r:ufnhC:M:c:' arg; do
|
while getopts 'r:ufnhC:M:c:' arg; do
|
||||||
case "${arg}" in
|
case "${arg}" in
|
||||||
r) RUN="$OPTARG" ;;
|
r) RUN="$OPTARG" ;;
|
||||||
u) RUN='/bin/sh -c "pacman -Syu --noconfirm && (pacman -Qqu >/dev/null && pacman -Su --noconfirm || exit 0)"' ;;
|
u) RUN='pacman -Syu --noconfirm' ;;
|
||||||
f) FORCE='y' ;;
|
f) FORCE='y' ;;
|
||||||
C) pac_conf="$OPTARG" ;;
|
C) pac_conf="$OPTARG" ;;
|
||||||
M) makepkg_conf="$OPTARG" ;;
|
M) makepkg_conf="$OPTARG" ;;
|
||||||
|
@ -128,7 +128,7 @@ chroot_lock () {
|
||||||
chroot_run() {
|
chroot_run() {
|
||||||
local dir=$1
|
local dir=$1
|
||||||
shift
|
shift
|
||||||
eval systemd-nspawn -D "${dir}" "${mount_args[@]}" -- ${@} 2>/dev/null
|
systemd-nspawn -D "${dir}" "${mount_args[@]}" -- ${@} 2>/dev/null
|
||||||
}
|
}
|
||||||
|
|
||||||
# }}}
|
# }}}
|
||||||
|
|
Loading…
Reference in New Issue