aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2014-04-26 00:02:12 +0200
committerJohannes Löthberg <johannes@kyriasis.com>2014-04-26 00:02:12 +0200
commit17355e52af63c0081f2d7e875b5d2db9e6ba9f59 (patch)
tree102022fdfcf6d56b481fda84fd902365bc5454e3
parent0189112e7ed31c8b7a7053ac401dc22af98340f5 (diff)
downloadbin-17355e52af63c0081f2d7e875b5d2db9e6ba9f59.tar.xz
pomf: Add pomf upload script
-rwxr-xr-xpomf4
1 files changed, 4 insertions, 0 deletions
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"