Commit 269e903e authored by Dylan Araps's avatar Dylan Araps

Fix teknik

parent 56997e6b
...@@ -2304,11 +2304,9 @@ scrot_upload() { ...@@ -2304,11 +2304,9 @@ scrot_upload() {
case "$image_host" in case "$image_host" in
"teknik") "teknik")
baseurl='https://u.teknik.io' 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})" ret="$(curl -sf -F file="@${image_file}" ${uploadurl})"
desturl="${ret##*url\":\"}" url="$(awk -F 'url:\"|\"' '{printf $2}' <<< "$ret")"
desturl="${desturl%%\"*}"
desturl="${desturl//\\}"
;; ;;
"mediacrush") "mediacrush")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment