Kaynağa Gözat
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.
tags/v1.1.2
Different55
4 yıl önce
committed by
GitHub
ebeveyn
işleme
0b23354473
Veri tabanında bu imza için bilinen anahtar bulunamadı
GPG Anahtar Kimliği: 4AEE18F83AFDEB23
1 değiştirilmiş dosya ile
1 ekleme ve
1 silme
-
README.md
|
|
@@ -87,7 +87,7 @@ alias transfer=transfer |
|
|
|
function transfer --description 'Upload a file to transfer.sh' |
|
|
|
if [ $argv[1] ] |
|
|
|
# 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 |
|
|
|
cat $tmpfile |
|
|
|
command rm -f $tmpfile |
|
|
|