mirror of
https://github.com/arkenfox/user.js.git
synced 2025-02-22 18:33:55 +00:00
updater.sh v4.0
- removed group root/wheel check
This commit is contained in:
parent
fd72683abe
commit
e4dd5aa428
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
## arkenfox user.js updater for macOS and Linux
|
## arkenfox user.js updater for macOS and Linux
|
||||||
|
|
||||||
## version: 3.9
|
## version: 4.0
|
||||||
## Author: Pat Johnson (@overdodactyl)
|
## Author: Pat Johnson (@overdodactyl)
|
||||||
## Additional contributors: @earthlng, @ema-pe, @claustromaniac, @infinitewarp
|
## Additional contributors: @earthlng, @ema-pe, @claustromaniac, @infinitewarp
|
||||||
|
|
||||||
@ -393,11 +393,11 @@ update_updater "$@"
|
|||||||
getProfilePath # updates PROFILE_PATH or exits on error
|
getProfilePath # updates PROFILE_PATH or exits on error
|
||||||
cd "$PROFILE_PATH" || exit 1
|
cd "$PROFILE_PATH" || exit 1
|
||||||
|
|
||||||
# Check if any files have the owner/group as root/wheel.
|
# Check if any files have the owner as root/wheel.
|
||||||
if [ -n "$(find ./ -user 0 -o -group 0)" ]; then
|
if [ -n "$(find ./ -user 0)" ]; then
|
||||||
printf 'It looks like this script was previously run with elevated privileges,
|
printf 'It looks like this script was previously run with elevated privileges,
|
||||||
you will need to change ownership of the following files to your user:\n'
|
you will need to change ownership of the following files to your user:\n'
|
||||||
find . -user 0 -o -group 0
|
find . -user 0
|
||||||
cd "$CURRDIR"
|
cd "$CURRDIR"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user