mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-12-17 21:31:49 +03:00
15 lines
352 B
Bash
Executable File
15 lines
352 B
Bash
Executable File
#!/bin/bash
|
|
set -eu
|
|
|
|
for f in $*; do
|
|
echo "** $f"
|
|
cat "$f" | grep -v '^$' | grep -v '^#' | while read -r line; do
|
|
echo "$line"
|
|
cmd="$line --no-progress-meter --output /dev/null --fail"
|
|
echo "$cmd" | bash || (echo ">>> Error <<<<" && exit 1)
|
|
done
|
|
echo
|
|
done
|
|
|
|
echo "all curl commands have been run with success!"
|