1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2025-02-05 07:43:22 -08:00

make curl better match wget behavior in grab

This commit is contained in:
Connor Olding 2024-07-04 21:26:18 -07:00
parent 3d948dcf74
commit 8b67b4f510

View file

@ -22,7 +22,7 @@ exit ${x:-1}
} }
get(){ get(){
if [ -f /usr/bin/curl ] if [ -f /usr/bin/curl ]
then curl -sSm5 -o "$@" then curl -sfL -m5 -o "$@"
else wget -qt1 -T5 -O "$@" else wget -qt1 -T5 -O "$@"
fi fi
} }