From d1a08318b3cbcdda1a579ca71d7cb45ff2f9dfd7 Mon Sep 17 00:00:00 2001 From: Remco Date: Thu, 23 Oct 2014 13:44:55 +0200 Subject: [PATCH] Fixes #7. mktemp needs consecutive 'X's in last component. --- transfersh-web/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transfersh-web/index.html b/transfersh-web/index.html index ff33c84..35511bc 100644 --- a/transfersh-web/index.html +++ b/transfersh-web/index.html @@ -151,7 +151,7 @@

Make an alias

Create an alias, and add it to .bashrc for faster use

- $ transfer() { # write to output to tmpfile because of progress bar tmpfile=$( mktemp -t transfer ) curl --progress-bar --upload-file $1 https://transfer.sh/$(basename $1) >> $tmpfile; cat $tmpfile; rm -f $tmpfile; } + $ transfer() { # write to output to tmpfile because of progress bar tmpfile=$( mktemp -t transferXXX ) curl --progress-bar --upload-file $1 https://transfer.sh/$(basename $1) >> $tmpfile; cat $tmpfile; rm -f $tmpfile; }
$ alias transfer=transfer

Now you can just use transfer command