1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-05-18 09:53:22 -07:00

allow grab to use curl

This commit is contained in:
Connor Olding 2024-03-25 16:11:39 -07:00
parent daae1412d0
commit 09fe2321f8

View File

@ -24,7 +24,10 @@ printf "failed to %s\n" "$task" >&2
exit ${x:-1} exit ${x:-1}
} }
get(){ get(){
wget -qt1 -T5 -O "$@" if [ -f /usr/bin/curl ]
then curl -sSm5 -o "$@"
else wget -qt1 -T5 -O "$@"
fi
} }
clean(){ clean(){
will clean up temporary files will clean up temporary files