From 613d1f831fb37a154ddafa9db694a4bb04a5ffd9 Mon Sep 17 00:00:00 2001 From: Keith Irwin Date: Thu, 15 Sep 2022 13:48:28 -0600 Subject: [PATCH] Removed args to index.cgi check --- back/dashboard.cgi | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/back/dashboard.cgi b/back/dashboard.cgi index a462ea1..567f9d7 100755 --- a/back/dashboard.cgi +++ b/back/dashboard.cgi @@ -6,10 +6,7 @@ # 4: Missing config file CONFIG_FILE='/etc/wgapi/config' - if ! [ ${#} -eq 0 ]; then - printf 'ERROR! Bad input: %s %s\n' "${0}" "${*}" >>"${LOGFILE}" - exit 3 -fi & if [ -f "${CONFIG_FILE}" ]; then +if [ -f "${CONFIG_FILE}" ]; then printf 'ERROR! %s could not find %s!\n' "${0}" "${CONFIG_FILE}" >>"${LOGFILE}" exit 4 fi; source "${CONFIG_FILE}"