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:
parent
3d948dcf74
commit
8b67b4f510
1 changed files with 1 additions and 1 deletions
2
sh/grab
2
sh/grab
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue