1
0
mirror of https://github.com/dutchcoders/transfer.sh.git synced 2020-11-18 19:53:40 -08:00

Merge pull request #251 from different55/patch-1

Fix fish alias for busybox systems
This commit is contained in:
Andrea Spacca 2019-07-29 21:59:47 +02:00 committed by GitHub
commit a09bcf3bf0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -87,7 +87,7 @@ alias transfer=transfer
function transfer --description 'Upload a file to transfer.sh' function transfer --description 'Upload a file to transfer.sh'
if [ $argv[1] ] if [ $argv[1] ]
# write to output to tmpfile because of progress bar # write to output to tmpfile because of progress bar
set -l tmpfile ( mktemp -t transferXXX ) set -l tmpfile ( mktemp -t transferXXXXXX )
curl --progress-bar --upload-file "$argv[1]" https://transfer.sh/(basename $argv[1]) >> $tmpfile curl --progress-bar --upload-file "$argv[1]" https://transfer.sh/(basename $argv[1]) >> $tmpfile
cat $tmpfile cat $tmpfile
command rm -f $tmpfile command rm -f $tmpfile