From 4a544306ea41c86df670cb05a33e7e8cb3bfbac3 Mon Sep 17 00:00:00 2001 From: Remco Date: Sat, 25 Oct 2014 00:40:51 +0200 Subject: [PATCH] fixed issue in alias example --- transfersh-server/static/index.html | 4 +++- transfersh-web/index.html | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/transfersh-server/static/index.html b/transfersh-server/static/index.html index fb54072..15014de 100644 --- a/transfersh-server/static/index.html +++ b/transfersh-server/static/index.html @@ -166,7 +166,9 @@
# Add this to .bashrc or its equivalent -
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; } +
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
diff --git a/transfersh-web/index.html b/transfersh-web/index.html index 6449443..db33b5b 100644 --- a/transfersh-web/index.html +++ b/transfersh-web/index.html @@ -168,7 +168,9 @@
# Add this to .bashrc or its equivalent -
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; } +
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