From 0b23354473a89d7945b01c5962c8e6b52d2f753e Mon Sep 17 00:00:00 2001 From: Different55 Date: Mon, 29 Jul 2019 13:27:43 -0500 Subject: [PATCH] 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. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 060e7ef..56ea23b 100644 --- a/README.md +++ b/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