Skip to content

Commit

Permalink
fixed extra if stament.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tearran committed Sep 4, 2024
1 parent dc95952 commit 72040a8
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions bin/armbian-configng
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
Expand Down

0 comments on commit 72040a8

Please sign in to comment.