Compare commits

...

4 Commits

Author SHA1 Message Date
Johannes Kimmel 802aedeb43 buildscript: add color to the root warning
Signed-off-by: Johannes Kimmel <fff@bareminimum.eu>
2024-01-19 22:56:53 +01:00
Johannes Kimmel 25114a1812 buildscript: print warning instead of failing build
Signed-off-by: Johannes Kimmel <fff@bareminimum.eu>
2024-01-19 22:38:47 +01:00
Johannes Kimmel e70d4a538c Revert "buildscript: don't error out when running as root"
This reverts commit e2cc7fc21d.
2024-01-19 22:36:32 +01:00
Johannes Kimmel e2cc7fc21d buildscript: don't error out when running as root
Signed-off-by: Johannes Kimmel <fff@bareminimum.eu>
2024-01-19 22:22:23 +01:00
1 changed files with 4 additions and 2 deletions

View File

@ -382,8 +382,10 @@ buildall() {
}
if [ "$(/usr/bin/id -u)" -eq 0 ]; then
echo "don't run buildscript as root"
exit 1
textWarn='\033[1;31m' # bold + red
textReset='\033[0m' # be a good citizen
echo -e "${textWarn}WARNING: buildscript is running as root${textReset}"
echo -e "${textWarn}WARNING: build may fail at a later stage${textReset}"
fi
if [ "$1" != "selectbsp" -a "$1" != "selectvariant" ]; then