mirror of
https://github.com/dutchcoders/transfer.sh.git
synced 2024-11-23 12:40:19 +01:00
Fix fish alias for busybox systems
While GNU mktemp will handle any number of X's, busybox mktemp (used in Android/Termux and distros like Alpine) insists on exactly 6 of them.
This commit is contained in:
parent
ce043efca0
commit
0b23354473
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue