Skip to content

Commit

Permalink
help message can show before checking for root
Browse files Browse the repository at this point in the history
  • Loading branch information
crschardt committed Dec 30, 2023
1 parent 3b0cdaf commit fe6a83b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit fe6a83b

Please sign in to comment.