From 130d4ff18088e5c22c9ad6e0d8c4e9eeceacc571 Mon Sep 17 00:00:00 2001 From: mar77i Date: Sun, 26 Nov 2023 23:39:08 +0100 Subject: [PATCH] bail from update_system.sh unless we're root --- update_system.sh | 1 + 1 file changed, 1 insertion(+) 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 -- 2.47.0