This repository has been archived on 2025-06-10. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
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

29 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