mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-06 16:19:23 +00:00
Meta: Use pls
instead of sudo
on SerenityOS
This commit is contained in:
parent
84e1017272
commit
139f871781
Notes:
sideshowbarker
2024-07-17 09:37:00 +09:00
Author: https://github.com/timschumi
Commit: 139f871781
Pull-request: https://github.com/SerenityOS/serenity/pull/14442
Reviewed-by: https://github.com/FireFox317
1 changed files with 7 additions and 1 deletions
|
@ -14,6 +14,12 @@ fi
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
SUDO="sudo"
|
||||||
|
|
||||||
|
if [ "$(uname -s)" = "SerenityOS" ]; then
|
||||||
|
SUDO="pls"
|
||||||
|
fi
|
||||||
|
|
||||||
die() {
|
die() {
|
||||||
echo "die: $*"
|
echo "die: $*"
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -25,7 +31,7 @@ if [ "$(id -u)" != 0 ]; then
|
||||||
if [ -x "$FUSE2FS_PATH" ] && $FUSE2FS_PATH --help 2>&1 |grep fakeroot > /dev/null; then
|
if [ -x "$FUSE2FS_PATH" ] && $FUSE2FS_PATH --help 2>&1 |grep fakeroot > /dev/null; then
|
||||||
USE_FUSE2FS=1
|
USE_FUSE2FS=1
|
||||||
else
|
else
|
||||||
sudo -E -- "$0" "$@" || die "this script needs to run as root"
|
${SUDO} -E -- "$0" "$@" || die "this script needs to run as root"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue