aboutsummaryrefslogtreecommitdiff
path: root/webui.sh
diff options
context:
space:
mode:
Diffstat (limited to 'webui.sh')
-rwxr-xr-xwebui.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/webui.sh b/webui.sh
index 6d4f0992..5f48741f 100755
--- a/webui.sh
+++ b/webui.sh
@@ -51,10 +51,11 @@ fi
can_run_as_root=0
# read any command line flags to the webui.sh script
-while getopts "f" flag
+while getopts "f" flag > /dev/null 2>&1
do
case ${flag} in
f) can_run_as_root=1;;
+ *) break;;
esac
done