diff options
| author | 2019-03-24 22:33:18 -0700 | |
|---|---|---|
| committer | 2019-03-24 22:33:18 -0700 | |
| commit | 6c27098533344d8800c6ca5d632b2877f854f431 (patch) | |
| tree | 65b134090fb8b674f4a6ccdeae38f358b353bda2 /user-scripts/transfer | |
| parent | 21e259ecd491f62ab2971c3f7ae533ae82cb86dc (diff) | |
| parent | 28ef959e7119e0ff8eed426f636f19744825e4dd (diff) | |
| download | nnn-6c27098533344d8800c6ca5d632b2877f854f431.tar.gz | |
Merge branch 'master' into add-kdeconnect
Diffstat (limited to 'user-scripts/transfer')
| -rwxr-xr-x | user-scripts/transfer | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/user-scripts/transfer b/user-scripts/transfer new file mode 100755 index 0000000..7201b0b --- /dev/null +++ b/user-scripts/transfer @@ -0,0 +1,16 @@ +#!/usr/bin/env sh + +# Description: Upload a file to transfer.sh +# +# Shell: POSIX compliant +# Author: Arun Prakash Jana + +if ! [ -z "$1" ]; then + # Upload the file, show the download link and wait till user presses any key + curl -s --upload-file "$1" https://transfer.sh/`basename "$1"` + echo + read input + + # To write download link to "$1".loc and exit + # curl -s --upload-file "$1" https://transfer.sh/`basename "$1"` -o `basename "$1"`.loc +fi |