mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-11-24 04:31:37 +03:00
17 lines
368 B
Bash
Executable File
17 lines
368 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
for input_file in "$@"; do
|
|
echo "$input_file"
|
|
output_file="/tmp/$(basename "$input_file")"
|
|
hurlfmt --no-format "$input_file" >"$output_file"
|
|
|
|
expected=$(cat "$input_file")
|
|
actual=$(cat "$output_file")
|
|
if [ "$actual" != "$expected" ]; then
|
|
echo "=> Difference!"
|
|
diff "$output_file" "$input_file"
|
|
exit &
|
|
fi
|
|
done
|