浏览代码

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

tags/v1.0.0
Remco 9 年前
父节点
当前提交
d1a08318b3
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      transfersh-web/index.html

+ 1
- 1
transfersh-web/index.html 查看文件

@@ -151,7 +151,7 @@
<h3>Make an alias</h3>

<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>
<h4>Now you can just use
<strong>transfer</strong> command</h4>


正在加载...
取消
保存