We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 24e395c commit a638c96Copy full SHA for a638c96
1 file changed
install/archlinux/shell/softwareupdate.sh
@@ -4,11 +4,20 @@
4
5
softwareupdate_list_pending_updates() {
6
# Update software database
7
- sudo ${SUDO_OPTIONS} pacman -Sy
+ if ! sudo ${SUDO_OPTIONS} pacman -Sy; then
8
+ # Silence non 0 exit
9
+ :
10
+ fi
11
# List software update
- sudo ${SUDO_OPTIONS} pacman -Qu
12
+ if ! sudo ${SUDO_OPTIONS} pacman -Qu; then
13
14
15
16
}
17
18
softwareupdate_updates_install() {
- sudo ${SUDO_OPTIONS} pacman -Syu --noconfirm
19
+ if ! sudo ${SUDO_OPTIONS} pacman -Syu --noconfirm; then
20
21
22
23
0 commit comments