Skip to content
Snippets Groups Projects
Commit 71b15aaf authored by Pierre Schmitz's avatar Pierre Schmitz
Browse files

Simplify update call as pacman does no longer support SyncFirst

parent 4bcafd97
No related branches found
No related tags found
No related merge requests found
...@@ -38,7 +38,7 @@ usage() { ...@@ -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 () { ...@@ -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
} }
# }}} # }}}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment