From e2689b25e9081d04f9d673a31b2b8a9080961c8b Mon Sep 17 00:00:00 2001 From: Kroese Date: Sat, 22 Apr 2023 17:24:07 +0200 Subject: [PATCH] Split lines --- run/server.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/run/server.sh b/run/server.sh index e615992..1c5f58d 100644 --- a/run/server.sh +++ b/run/server.sh @@ -3,7 +3,7 @@ set -eu trap exit SIGINT SIGTERM # Close any previous instances -script_name=${BASH_SOURCE[0]} +script_name="${BASH_SOURCE[0]}" for pid in $(pidof -x "$script_name"); do if [ "$pid" != $$ ]; then @@ -13,7 +13,9 @@ for pid in $(pidof -x "$script_name"); do done # Serve the page -HTML="

$2

" +HTML="\ +

$2

" + LENGTH="${#HTML}" RESPONSE="HTTP/1.1 200 OK\nContent-Length: ${LENGTH}\nConnection: close\n\n$HTML\n\n"