more fixes

master
Bryan 2020-12-20 01:08:47 -06:00
parent 3b49fa337f
commit 9503f2deb8
1 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ fi
# Check password
read apiKey <"${PASSWD_FILE}"
if [ "${param[apiKey]}" != "${apiKey}" ]; then
echo '{"error": "Invalid credentials",}'
echo '{"error": "Invalid credentials"}'
rm "$LOCKFILE"
exit 1
fi
@ -42,7 +42,7 @@ fi
#echo "Waiting ..."
sleep ${param[delay]}
echo '{"message": "Unlocked",}'
echo '{"message": "Unlocked"}'
#echo "out" > /sys/class/gpio/gpio${PIN[7]}/direction