diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2014-04-26 00:02:12 +0200 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2014-04-26 00:02:12 +0200 |
commit | 17355e52af63c0081f2d7e875b5d2db9e6ba9f59 (patch) | |
tree | 102022fdfcf6d56b481fda84fd902365bc5454e3 /pomf | |
parent | 0189112e7ed31c8b7a7053ac401dc22af98340f5 (diff) | |
download | bin-17355e52af63c0081f2d7e875b5d2db9e6ba9f59.tar.xz |
pomf: Add pomf upload script
Diffstat (limited to 'pomf')
-rwxr-xr-x | pomf | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -0,0 +1,4 @@ +#!/usr/bin/env bash +upload=$(curl -sf -F "files[]=@\"$1\"" http://pomf.se/upload.php) +geturl=$(jshon -e files -e 0 -e url -u <<< $upload) +printf "%s/%s\n" "http://a.pomf.se" "$geturl" |