From 17355e52af63c0081f2d7e875b5d2db9e6ba9f59 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Sat, 26 Apr 2014 00:02:12 +0200 Subject: pomf: Add pomf upload script --- pomf | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 pomf diff --git a/pomf b/pomf new file mode 100755 index 0000000..051a0da --- /dev/null +++ b/pomf @@ -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" -- cgit v1.2.3-70-g09d2