summaryrefslogtreecommitdiff
path: root/upload
diff options
context:
space:
mode:
Diffstat (limited to 'upload')
-rwxr-xr-xupload12
1 files changed, 12 insertions, 0 deletions
diff --git a/upload b/upload
new file mode 100755
index 0000000..26d9510
--- /dev/null
+++ b/upload
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+set -e
+
+if [ "$1" = "" ];then echo "No args"; exit; fi
+
+TO_UPLOAD_FILE="$1"
+
+RETURN_LINK=$(curl -F "file=@$TO_UPLOAD_FILE" https://0x0.st)
+
+echo $RETURN_LINK | xsel -b
+echo $RETURN_LINK