mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-12-18 08:02:12 +03:00
13 lines
262 B
Bash
Executable File
13 lines
262 B
Bash
Executable File
#!/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
|
|
|