From a1ba95b12951596993a4aff14f02a9e6ccf7a1d4 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Tue, 5 May 2015 18:29:02 +0200 Subject: update pomf scripts --- pomf | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'pomf') diff --git a/pomf b/pomf index 051a0da..9c2e26d 100755 --- a/pomf +++ b/pomf @@ -1,4 +1,7 @@ #!/usr/bin/env bash -upload=$(curl -sf -F "files[]=@\"$1\"" http://pomf.se/upload.php) + +set -o errexit + +upload=$(curl -sf -F "files[]=@\"$1\"" https://pomf.se/upload.php) geturl=$(jshon -e files -e 0 -e url -u <<< $upload) -printf "%s/%s\n" "http://a.pomf.se" "$geturl" +printf "%s/%s\n" "https://a.pomf.se" "$geturl" -- cgit v1.2.3-70-g09d2