diff --git a/run.sh b/run.sh index 1eacef9..77d7328 100755 --- a/run.sh +++ b/run.sh @@ -1,8 +1,8 @@ #!/bin/bash while true; do - export joke=`shuf -n 1 kids-jokes.txt` - timeout --foreground -vs9 5m watch -tn60 ./dash.sh + export joke=$(curl -s -H "Accept: text/plain" https://icanhazdadjoke.com/) + timeout --foreground -vs9 3m watch -tn60 ./dash.sh if [ $? -eq 0 ]; then reset break