Update updater.sh

This commit is contained in:
earthlng 2023-04-22 11:49:53 +00:00 committed by GitHub
parent 7bc2a1a507
commit 84f95250d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,7 +10,7 @@
# Check if running as root and if any files have the owner/group as root/wheel.
if [ "${EUID:-"$(id -u)"}" -eq 0 ]; then
printf 'You should not run this with elevated privileges (such as with doas/sudo).\n'
printf 'You shouldn't run this with elevated privileges (such as with doas/sudo).\n'
exit 1
elif [ -n "$(find ./ -user 0 -o -group 0)" ]; then
printf 'It looks like this script was previously run with elevated privileges,