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.
17 lines
328 B
17 lines
328 B
2 years ago
|
#!/usr/bin/env bash
|
||
|
|
||
|
# Unofficial Bash Strict Mode
|
||
|
set -euo pipefail
|
||
|
IFS='
|
||
|
'
|
||
|
|
||
|
print_content() {
|
||
|
mkdir -p uncompressed
|
||
|
tar -xpf done.tar -C uncompressed
|
||
|
tree uncompressed
|
||
|
}
|
||
|
|
||
|
submitted=$(cd student/struct && print_content)
|
||
|
expected=$(cd solutions/struct && print_content)
|
||
|
diff <(echo "$submitted") <(echo "$expected")
|