瀏覽代碼

Merge pull request #129 from qoomon/patch-1

refactor bash script without temp files
tags/v1.0.0
Andrea Spacca 5 年之前
committed by GitHub
父節點
當前提交
032dffb3ae
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: 4AEE18F83AFDEB23
共有 1 個文件被更改,包括 1 次插入5 次删除
  1. +1
    -5
      README.md

+ 1
- 5
README.md 查看文件

@@ -23,11 +23,7 @@ $ curl -X PUT --upload-file nhgbhhj https://transfer.sh/test.txt/virustotal
## Add alias to .bashrc or .zshrc
```
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;
curl --progress-bar --upload-file $1 https://transfer.sh/$(basename $1) | tee /dev/null;
}

alias transfer=transfer


Loading…
取消
儲存