Exit if not running as root

This commit is contained in:
Steev Klimaszewski
2018-06-22 18:30:52 -05:00
parent c484857950
commit 08f2328208
10 changed files with 50 additions and 0 deletions

5
bbb.sh
View File

@@ -5,6 +5,11 @@ if [[ $# -eq 0 ]] ; then
exit 0
fi
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root"
exit 1
fi
basedir=`pwd`/beaglebone-black-$1
# Package installations for various sections.