Skip to content
Snippets Groups Projects
Commit bb426c9e authored by Peter J. Philipp's avatar Peter J. Philipp Committed by Tim Niemeyer
Browse files

Check for root and bail out if the user is root.


Signed-off-by: default avatarPeter J. Philipp <freifunk@centroid.eu>
Reviewed-by: default avatarTim Niemeyer <tim@tn-x.org>
parent fb8290b8
No related branches found
No related tags found
No related merge requests found
......@@ -373,6 +373,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" != "selectcommunity" ]; then
if [ ! -h selected_bsp ]; then
echo "Please select a Board-Support-Package using:"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment