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.
21 lines
339 B
21 lines
339 B
#!/usr/bin/env bash |
|
|
|
# Unofficial Bash Strict Mode |
|
set -euo pipefail |
|
IFS=' |
|
' |
|
|
|
echo insecure >> ~/.curlrc |
|
caddy start &>/dev/null |
|
|
|
challenge() { |
|
submitted=$(bash student/myfamily.sh) |
|
expected=$(bash solutions/myfamily.sh) |
|
|
|
diff <(echo "$submitted") <(echo "$expected") |
|
} |
|
|
|
HERO_ID=1 challenge |
|
HERO_ID=70 challenge |
|
|
|
caddy stop &>/dev/null
|
|
|