From 72040a8225d59a7a27ef1aa0cfc6c74cd7be3a75 Mon Sep 17 00:00:00 2001 From: Tearran Date: Wed, 4 Sep 2024 18:33:13 -0400 Subject: [PATCH] fixed extra if stament. --- bin/armbian-configng | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/bin/armbian-configng b/bin/armbian-configng index cccf80936..e291bc7a0 100755 --- a/bin/armbian-configng +++ b/bin/armbian-configng @@ -82,7 +82,7 @@ case "$1" in exit 0 ;; "--api") - if [[ $EUID != 0 ]]; then + if [[ $EUID != 0 ]]; then echo "Error: The --api option requires root privileges. Please run as root or use sudo." exit 1 fi @@ -93,10 +93,6 @@ case "$1" in fi option="$1" shift - if [[ -z "$1" ]]; then - echo "Error: Missing arguments for --api." - exit 1 - fi args=$(sanitize_input "$@") # echo -e "\"$option\" \"$args\"" "$option" "$args"