diff --git a/scripts/install.sh b/scripts/install.sh index cfa8f18628..af47016af8 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -17,11 +17,6 @@ help() { echo } -if [ "$(id -u)" != "0" ]; then - echo "This script must be run as root" 1>&2 - exit 1 -fi - INSTALL_NETWORK_MANAGER="false" while getopts ":hmnq" name; do @@ -45,6 +40,11 @@ done shift $(($OPTIND -1)) +if [ "$(id -u)" != "0" ]; then + echo "This script must be run as root" 1>&2 + exit 1 +fi + ARCH=$(uname -m) ARCH_NAME="" if [ "$ARCH" = "aarch64" ]; then