mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +00:00
Meta: Use pls instead of sudo on SerenityOS
This commit is contained in:
committed by
Linus Groh
parent
84e1017272
commit
139f871781
@@ -14,6 +14,12 @@ fi
|
||||
|
||||
set -e
|
||||
|
||||
SUDO="sudo"
|
||||
|
||||
if [ "$(uname -s)" = "SerenityOS" ]; then
|
||||
SUDO="pls"
|
||||
fi
|
||||
|
||||
die() {
|
||||
echo "die: $*"
|
||||
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
|
||||
USE_FUSE2FS=1
|
||||
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
|
||||
fi
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user