diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2015-05-05 18:29:02 +0200 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2015-05-05 18:29:02 +0200 |
commit | a1ba95b12951596993a4aff14f02a9e6ccf7a1d4 (patch) | |
tree | f29b1bdfda812fc330ce909be189bf7a61c46ce4 /pomf | |
parent | 6e069a03f5cc995d85f2293495c208a0994b0275 (diff) | |
download | bin-a1ba95b12951596993a4aff14f02a9e6ccf7a1d4.tar.xz |
update pomf scripts
Diffstat (limited to 'pomf')
-rwxr-xr-x | pomf | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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" |