From 269e903e643df12a948474316e9e98d677dd687f Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sun, 2 Oct 2016 19:51:44 +1100 Subject: [PATCH] Fix teknik --- neofetch | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/neofetch b/neofetch index 1482af9f..be7bdb71 100755 --- a/neofetch +++ b/neofetch @@ -2304,11 +2304,9 @@ scrot_upload() { case "$image_host" in "teknik") baseurl='https://u.teknik.io' - uploadurl='https://api.teknik.io/upload/post' + uploadurl='https://api.teknik.io/v1/Upload' ret="$(curl -sf -F file="@${image_file}" ${uploadurl})" - desturl="${ret##*url\":\"}" - desturl="${desturl%%\"*}" - desturl="${desturl//\\}" + url="$(awk -F 'url:\"|\"' '{printf $2}' <<< "$ret")" ;; "mediacrush")