Skip to content

Commit

Permalink
fix: Remove cat
Browse files Browse the repository at this point in the history
  • Loading branch information
kroese authored Jan 13, 2024
1 parent cdc5e13 commit 06f032e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ else
HTML=$(html "xxx")

{ echo "#!/bin/bash"
echo "[ -f \"/run/shm/dsm.url\" ] && LOCATION=\$(cat \"/run/shm/dsm.url\")"
echo "[ -f \"/run/shm/dsm.url\" ] && LOCATION=\$(</run/shm/dsm.url)"
echo "HTML=\"$HTML\"; [ -z \"\$LOCATION\" ] && BODY=\"$WAIT\" || BODY=\"$BODY\"; HTML=\${HTML/xxx/\$BODY}"
echo "printf '%b' \"HTTP/1.1 200 OK\\nContent-Length: \${#HTML}\\nConnection: close\\n\\n\$HTML\""
} > "$TMP_FILE"
Expand Down

0 comments on commit 06f032e

Please sign in to comment.