mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-17 06:52:23 +00:00
Meta: Add error message when running serenity.sh as root
It's not a good idea, and it causes countless issues for people who do so and then try to run without root later.
This commit is contained in:
parent
808855d763
commit
e46a00f0c0
Notes:
sideshowbarker
2024-07-18 04:46:35 +09:00
Author: https://github.com/ADKaster
Commit: e46a00f0c0
Pull-request: https://github.com/SerenityOS/serenity/pull/14157
1 changed files with 4 additions and 0 deletions
|
@ -82,6 +82,10 @@ if [ "$CMD" = "help" ]; then
|
|||
exit 0
|
||||
fi
|
||||
|
||||
if [ "$(id -u)" -eq 0 ]; then
|
||||
die "Do not run serenity.sh as root, your Build directory will become root-owned"
|
||||
fi
|
||||
|
||||
if [ -n "$1" ]; then
|
||||
TARGET="$1"; shift
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue