You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#! /bin/bash
|
|
|
|
set -x
|
|
cd "$(dirname "${BASH_SOURCE[0]}")"
|
|
|
|
FAILED=()
|
|
while read ln; do
|
|
./fantasy.js "$ln" || FAILED+=("$ln")
|
|
done < <(./fantasy.js) # prevent subshell
|
|
|
|
set +x
|
|
for x in "${FAILED[@]}"; do
|
|
printf '\033[31mFAILED %s\033[0m\n' "$x"
|
|
done
|
|
[[ ${#FAILED[@]} == 0 ]]
|