mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Ask test script fix, debug logging typo fix
This commit is contained in:
parent
c6764ce49c
commit
6e83e5051c
3 changed files with 4 additions and 4 deletions
|
@ -28,13 +28,13 @@ echo "Question: $q"
|
|||
echo "Data: $data"
|
||||
echo "Subject: $subj"
|
||||
|
||||
q=$(node -e "console.log(encodeURIComponent('\"$q\"'))")
|
||||
q=$(node -e "console.log(encodeURIComponent('$q'))")
|
||||
if [ "$?" -ne 0 ]; then
|
||||
echo "node error!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
subj=$(node -e "console.log(encodeURIComponent('\"$subj\"'))")
|
||||
subj=$(node -e "console.log(encodeURIComponent('$subj'))")
|
||||
if [ "$?" -ne 0 ]; then
|
||||
echo "node error!"
|
||||
exit 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue