Skip to content

Commit b333955

Browse files
author
Constantine Apostolou
authored
Add backslashes as there are in other command responses
1 parent 298cc2f commit b333955

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

app/server/linux_json_api.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -640,10 +640,9 @@ user_accounts() {
640640
fnCalled="$1"
641641

642642
# Check if the function call is indeed a function.
643-
if [ -n "$(type -t $fnCalled)" ] && [ "$(type -t $fnCalled)" = function ];
644-
then
643+
if [ -n "$(type -t $fnCalled)" ] && [ "$(type -t $fnCalled)" = function ]; then
645644
${fnCalled}
646645
else
647-
echo '{"success":false,"status":"Invalid module"}'
646+
echo '{\"success\":false,\"status\":\"Invalid module\"}'
648647
fi
649648

0 commit comments

Comments
 (0)