mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-18 06:38:29 -04:00
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:
parent
ef5a2cc470
commit
a955897b89
@ -3,6 +3,11 @@ echo "---------- $0 start ----------"
|
|||||||
set -e
|
set -e
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
|
if [ $EUID == 0 ]; then
|
||||||
|
echo "Please do not run this script as root; don't sudo it!"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
OPT="/opt"
|
OPT="/opt"
|
||||||
BASE_PKGS="build-essential ccache g++ gawk git make wget"
|
BASE_PKGS="build-essential ccache g++ gawk git make wget"
|
||||||
PYTHON_PKGS="future lxml pymavlink MAVProxy pexpect"
|
PYTHON_PKGS="future lxml pymavlink MAVProxy pexpect"
|
||||||
|
Loading…
Reference in New Issue
Block a user