mirror of https://github.com/01-edu/public.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
448 B
20 lines
448 B
#!/usr/bin/env bash |
|
|
|
set -euo pipefail |
|
IFS=' |
|
' |
|
|
|
script_dirS=$(cd -P "$(dirname "$BASH_SOURCE")" &>/dev/null && pwd) |
|
|
|
challenge() { |
|
$(bash "$script_dirS"/student/input-redirection.sh) |
|
submitted=$(bash "$script_dirS"/show_info.sh) |
|
rm show_info.sh |
|
$(bash "$script_dirS"/solutions/input-redirection.sh) |
|
expected=$(bash "$script_dirS"/show_info.sh) |
|
rm show_info.sh |
|
|
|
diff <(echo "$submitted") <(echo "$expected") |
|
} |
|
|
|
challenge
|
|
|