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

Fixes #7. mktemp needs consecutive 'X's in last component.

This commit is contained in:
Remco 2014-10-23 13:44:55 +02:00
parent ce0ebab7d1
commit d1a08318b3

View File

@ -151,7 +151,7 @@
<h3>Make an alias</h3> <h3>Make an alias</h3>
<h4>Create an alias, and add it to .bashrc for faster use</h4> <h4>Create an alias, and add it to .bashrc for faster use</h4>
<code>$ 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; } <code>$ 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; }
<br/>$ alias transfer=transfer</code> <br/>$ alias transfer=transfer</code>
<h4>Now you can just use <h4>Now you can just use
<strong>transfer</strong> command</h4> <strong>transfer</strong> command</h4>