Tools: install-prereqs-ubuntu: add not-run-as-root sanity check

Running as root leaves all sorts of things with nasty permissions
This commit is contained in:
Peter Barker 2019-11-30 08:44:02 +11:00 committed by Peter Barker
parent ef5a2cc470
commit a955897b89

View File

@ -3,6 +3,11 @@ echo "---------- $0 start ----------"
set -e
set -x
if [ $EUID == 0 ]; then
echo "Please do not run this script as root; don't sudo it!"
exit 1
fi
OPT="/opt"
BASE_PKGS="build-essential ccache g++ gawk git make wget"
PYTHON_PKGS="future lxml pymavlink MAVProxy pexpect"