Revert "buildscript: don't error out when running as root"

This reverts commit e2cc7fc21d.
This commit is contained in:
Johannes Kimmel 2024-01-19 22:36:32 +01:00
parent e2cc7fc21d
commit e70d4a538c
1 changed files with 5 additions and 0 deletions

View File

@ -381,6 +381,11 @@ buildall() {
done
}
if [ "$(/usr/bin/id -u)" -eq 0 ]; then
echo "don't run buildscript as root"
exit 1
fi
if [ "$1" != "selectbsp" -a "$1" != "selectvariant" ]; then
if [ ! -h selected_bsp ]; then
echo "Please select a Board-Support-Package using:"