From 6de7d0e991e62e4315bc4473fa848635b14b515b Mon Sep 17 00:00:00 2001 From: typebrook Date: Sat, 8 Feb 2020 20:27:32 +0800 Subject: update --- scripts/gist | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'scripts/gist') diff --git a/scripts/gist b/scripts/gist index fad035c..9d884d8 100755 --- a/scripts/gist +++ b/scripts/gist @@ -37,7 +37,6 @@ # TODO test on bats, mac and remote machine # TODO completion -# FIXME mac: tac=tail -r # Shell configuration set -o pipefail @@ -136,10 +135,8 @@ getConfiguredClient() { configuredClient="wget" elif command -v http &>/dev/null; then configuredClient="httpie" - elif command -v fetch &>/dev/null; then - configuredClient="fetch" else - echo "Error: This tool requires either curl, wget, httpie or fetch to be installed." >&2 + echo "Error: This tool requires either curl, wget, or httpie to be installed." >&2 return 1 fi } @@ -157,8 +154,6 @@ http_method() { httpie) [[ -n $token ]] && header="Authorization:token $token" [[ $METHOD =~ (POST|PATCH) ]] && extra2="@$http_data" http -b $METHOD "$@" "$header" $extra2 ;; - # TODO add other methods - fetch) fetch -q "$@" ;; esac } -- cgit v1.2.3-70-g09d2