accept command line parameters

master
Bryan 2020-12-20 00:29:32 -06:00
parent db37673d17
commit 23a3ced7f5
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ fi
# Check password
read apikey <"${PASSWD_FILE}"
if [ "${param[apikey]}" != "${apikey}" ]; then
if [ "${param[apiKey]}" != "${apiKey}" ]; then
echo '{"error": "Invalid credentials",}'
rm "$LOCKFILE"
exit 1