]> git.mar77i.info Git - admin/commitdiff
bail from update_system.sh unless we're root
authormar77i <mar77i@protonmail.ch>
Sun, 26 Nov 2023 22:39:08 +0000 (23:39 +0100)
committermar77i <mar77i@protonmail.ch>
Sun, 26 Nov 2023 22:40:16 +0000 (23:40 +0100)
update_system.sh

index 39e7862a6253da524f308eebf7836dfed99ac57d..a5e64f9a79abab121e626d8cfc0738a294e898a4 100755 (executable)
@@ -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