server/configs/anim-start-challenge.sh
Pierre-Olivier Mercier 48b65e0d39
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is failing
Add dummy script to animate the challenge launch
2021-09-09 11:33:59 +02:00

30 lines
387 B
Bash
Executable File

#!/bin/sh
echo "Launching challenge..."
echo
curl -s admin-challenge:8081/admin/api/settings.json | jq "{start:.start, end:.end}"
echo
for i in `seq 30 -1 1`
do
echo -n "."
sleep 0.036
done
echo
curl -s admin-challenge:8081/admin/api/settings.json | jq .
for i in `seq 40 -1 1`
do
echo -n "."
sleep 0.02
done
echo
echo "Challenge started!" | figlet
echo
echo
echo