2021-06-13 22:53:53 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
help_text="
|
|
|
|
submit.sh - submit an slbr solution to be verified
|
|
|
|
usage: ./submit <challenge number> <solution>
|
|
|
|
for example: ./submit 3 \"this is the solution for challenge 3\"
|
|
|
|
"
|
|
|
|
challenge_no="$1"
|
|
|
|
submitted_solution="$2"
|
|
|
|
|
|
|
|
[ -z "$submitted_solution" ] && echo "$help_text" && exit
|
|
|
|
|
2021-11-16 18:11:29 +00:00
|
|
|
echo "SUBMIT $challenge_no $submitted_solution" \
|
|
|
|
| nc {{ HOST_IP }} {{ SLBR_PORT }}
|