hurl/integration/hurlfmt_check.sh

13 lines
262 B
Bash
Raw Normal View History

2023-06-01 10:24:52 +03:00
#!/bin/bash
#!/bin/bash
set -Eeuo pipefail
for hurl_file in "$@"; do
echo "hurlfmt $hurl_file"
output_file=/tmp/$(basename "$hurl_file")
hurlfmt "$hurl_file" >"$output_file"
if ! diff "$hurl_file" "$output_file"; then
exit 1
fi
done