From edd964b496ba34f647037d9047ed1587913d6738 Mon Sep 17 00:00:00 2001 From: Kristoffer Minya <29523105+phenonymous@users.noreply.github.com> Date: Fri, 9 Nov 2018 14:25:59 +0100 Subject: [PATCH] Update gogh.sh --- gogh.sh | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/gogh.sh b/gogh.sh index 5ce6125..cd65cd7 100755 --- a/gogh.sh +++ b/gogh.sh @@ -201,14 +201,6 @@ capitalize() { echo "${RES_NO_TRAIL_SPACE}" } -curlsource() { - local F - F=$(mktemp -t curlsource) - curl -o "$F" -s -L "$1" - source "$F" - rm -f "$F" -} - set_gogh() { string=$1 string_r="${string%???}" @@ -225,10 +217,9 @@ set_gogh() { else if [ "$(uname)" = "Darwin" ]; then # OSX ships with curl - # Note: sourcing directly from curl does not work - curlsource "${url}" + bash -c eval "$(curl -Lo- "${url}")" else - bash <(wget -O - "${url}") + bash <(wget -O- "${url}") fi fi }