blob: d268738c8342126e6f4e123470129f5bd8b64b7f (
plain)
1
2
3
4
5
6
7
8
9
10
11
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
|