From: mar77i Date: Sun, 26 Nov 2023 22:39:08 +0000 (+0100) Subject: bail from update_system.sh unless we're root X-Git-Url: https://git.mar77i.info/?a=commitdiff_plain;h=130d4ff18088e5c22c9ad6e0d8c4e9eeceacc571;p=admin bail from update_system.sh unless we're root --- diff --git a/update_system.sh b/update_system.sh index 39e7862..a5e64f9 100755 --- a/update_system.sh +++ b/update_system.sh @@ -8,6 +8,7 @@ print_and_run() { } print_and_run pacman -Syu +(( "$UID" )) && exit 1 print_and_run pacdiff -f -o cd print_and_run bash