Fixed Teknik uploading.

This commit is contained in:
Brett Bohnenkamper
2014-08-15 16:47:01 -10:00
parent 9ebc586133
commit f852cbcfe1

View File

@@ -1839,10 +1839,9 @@ takeShot () {
baseurl='http://u.teknik.io'
uploadurl='http://api.teknik.io/upload/post'
ret=$(curl -sf -F file="@${shotfiles[@]}" ${uploadurl})
echo "$ret"
filehash="${ret##*name\":\"}"
filehash="${fileret%%\"*}"
desturl="${baseurl}/${filehash}"
desturl="${out##*url\":\"}"
desturl="${desturl%%\"*}"
desturl="${desturl//\\}"
;;
'mediacrush')
baseurl='https://mediacru.sh'