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
366 B
20 lines
366 B
#!/usr/bin/env bash |
|
|
|
# Unofficial Bash Strict Mode |
|
set -euo pipefail |
|
IFS=' |
|
' |
|
|
|
print_content() { |
|
mkdir -p uncompressed |
|
tar -xpf auto-jobs.tar -C uncompressed |
|
cat -e uncompressed/$1 |
|
} |
|
|
|
for i in 1 2 3 4 |
|
do |
|
submitted=$(cd student && print_content task$i) |
|
expected=$(cd solutions && print_content task$i) |
|
|
|
diff <(echo "$submitted") <(echo "$expected") |
|
done |