From 7e5b6031592a206d2b4dca5661a3c2d301688c33 Mon Sep 17 00:00:00 2001 From: Alex Epstein Date: Wed, 5 Jul 2017 20:11:03 -0400 Subject: [PATCH] Removing fetch from httpGet in qrify --- qrify/qrify | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/qrify/qrify b/qrify/qrify index 39f6bd4..9591836 100755 --- a/qrify/qrify +++ b/qrify/qrify @@ -11,10 +11,8 @@ getConfiguredClient() configuredClient="curl" elif command -v wget &v/dev/null ; then configuredClient="wget" - elif command -v fetch &>/dev/null ; then - configuredClient="fetch" else - echo "Error: This tool requires either curl, wget, or fetch to be installed." >&2 + echo "Error: This tool requires either curl or wget to be installed." >&2 return 1 fi } @@ -64,8 +62,7 @@ httpGet() { case "$configuredClient" in curl) curl -A curl -s "$@";; - wget) wget -q0- "$@";; - fetch) fetch -o "...";; + wget) wget --post-data "$@";; esac } @@ -78,7 +75,7 @@ makeqr() makeMultiLineQr() { if [[ $configuredClient != "curl" ]]; then - echo "Multiline support is for now curl only!" + echo "Multiline currently only supports curl!" return 1 else printf "%s" "$*" | curl -F-=\<- qrenco.de