mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:37:34 +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
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