fixed joke to use system curl

This commit is contained in:
eeleater 2023-08-10 00:59:04 +02:00
parent 08330d55f8
commit 87d4766ca8

View file

@ -1,8 +1,8 @@
#!/usr/bin/env bash
##!/usr/bin/env bash
case "$1" in
"dad")
joke=$(curl -sH "Accept: text/plain" 'https://icanhazdadjoke.com/')
joke=$(/usr/bin/curl -sH "Accept: text/plain" 'https://icanhazdadjoke.com/')
echo "Daily Dad Joke: $joke"
;;
"bofh")