mirror of
https://github.com/alexanderepstein/Bash-Snippets
synced 2018-11-08 02:59:35 +01:00
Does not work with cloudup
This commit is contained in:
parent
9d66388cd2
commit
4bfb2f6881
@ -17,8 +17,6 @@ getConfiguredClient()
|
|||||||
configuredClient="curl"
|
configuredClient="curl"
|
||||||
elif command -v wget &>/dev/null; then
|
elif command -v wget &>/dev/null; then
|
||||||
configuredClient="wget"
|
configuredClient="wget"
|
||||||
elif command -v http &>/dev/null; then
|
|
||||||
configuredClient="httpie"
|
|
||||||
elif command -v fetch &>/dev/null; then
|
elif command -v fetch &>/dev/null; then
|
||||||
configuredClient="fetch"
|
configuredClient="fetch"
|
||||||
else
|
else
|
||||||
@ -33,7 +31,6 @@ httpGet()
|
|||||||
case "$configuredClient" in
|
case "$configuredClient" in
|
||||||
curl) curl -A curl -s "$@" ;;
|
curl) curl -A curl -s "$@" ;;
|
||||||
wget) wget -qO- "$@" ;;
|
wget) wget -qO- "$@" ;;
|
||||||
httpie) http -b GET "$@" ;;
|
|
||||||
fetch) fetch -o "..." ;;
|
fetch) fetch -o "..." ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user