fixed joke to use system curl
This commit is contained in:
parent
08330d55f8
commit
87d4766ca8
1 changed files with 3 additions and 3 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Reference in a new issue