Prevent running bootstrap.sh as root

This commit is contained in:
Casper 2018-04-10 21:26:28 +02:00 committed by Marc Di Luzio
parent 2e710c2d2d
commit 8dfbaba288

View File

@ -1,5 +1,11 @@
#!/bin/bash
# Simple bootstrap script to build and run the daemon
if [ "$EUID" -eq 0 ]
then echo "Please don't run bootstrap.sh as root."
exit
fi
set -e
# Echo the rest so it's obvious