Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
krnowak committed Aug 1, 2024
1 parent 3e70e2f commit 0388013
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/flatcar-update
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ tee /tmp/response-server > /dev/null <<'EOF'
#!/bin/bash
set -euo pipefail
read -a WORDS
if [[ ${#WORDS[@]} -ne 3 -o ${WORDS[0]} != POST -o ${WORDS[1]} != /update ]] ; then
if [[ ${#WORDS[@]} -ne 3 ]] || [[ ${WORDS[0]} != POST ]] || [[ ${WORDS[1]} != /update ]] ; then
echo -ne "HTTP/1.1 400 Bad request\r\n\r\n"; exit 0
fi
echo -ne "HTTP/1.1 200 OK\r\n"
Expand Down

0 comments on commit 0388013

Please sign in to comment.