Browse Source

http->https

master
Brett Bohnenkamper 5 years ago
parent
commit
2a5954be7c
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      Upload/upload.sh

+ 2
- 2
Upload/upload.sh View File

@@ -13,14 +13,14 @@ else
n=1
for i in "$@"; do
printf "\nUploading file #${n} ... "
out=$(curl -sf -F file="@${i}" http://api.teknik.io/upload/post)
out=$(curl -sf -F file="@${i}" https://api.teknik.io/upload/post)
if [[ "${out}" =~ "error" ]]; then
printf 'error uploading file!\n'
exit 1
else
out="${out##*name\":\"}"
out="${out%%\"*}"
printf "uploaded! Your file can be found at http://u.teknik.io/${out}\n"
printf "uploaded! Your file can be found at https://u.teknik.io/${out}\n"
fi
((n++))
done

Loading…
Cancel
Save