From 8dfbaba288a7e9a3f8de576e741bd1abf705f36b Mon Sep 17 00:00:00 2001 From: Casper Date: Tue, 10 Apr 2018 21:26:28 +0200 Subject: [PATCH] Prevent running bootstrap.sh as root --- bootstrap.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bootstrap.sh b/bootstrap.sh index d56a3b6..b05b5c9 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -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