Commit f2ae7ba9 authored by Seblu's avatar Seblu
Browse files

system-upgrade: run checkservice only when success

parent ec9666d4
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -29,6 +29,8 @@ if (( $UID != 0 )); then
	exit 1
fi

pacman --sync --refresh --sysupgrade "$@"

if pacman --sync --refresh --sysupgrade "$@"; then
	checkservices
else
	printf '\e[7;33;40mcheckservices not run because pacman did not exit zero\e[m\n'
fi