ensure setup_linux.sh isn't run as root
This commit is contained in:
parent
cd9dd00c92
commit
797e34f965
@ -1,6 +1,11 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -eo pipefail
|
set -eo pipefail
|
||||||
|
|
||||||
|
if [ $(id -u) -eq 0 ]; then
|
||||||
|
echo "Don't run this as root"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
||||||
|
|
||||||
if [[ "$(uname)" != "Linux" ]]; then
|
if [[ "$(uname)" != "Linux" ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user