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

updated readme with mktemp fix

This commit is contained in:
Remco 2014-10-23 22:36:25 +02:00
parent d1a08318b3
commit d29de37273

View File

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