From 8b56d3bc1514d81fd1accd7eea63d163216ede7a Mon Sep 17 00:00:00 2001 From: Remco Date: Fri, 14 Nov 2014 11:06:26 +0100 Subject: [PATCH] alias fix for allowed chars --- transfersh-server/static/index.html | 2 +- transfersh-web/index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/transfersh-server/static/index.html b/transfersh-server/static/index.html index 223f42c..7e556dd 100644 --- a/transfersh-server/static/index.html +++ b/transfersh-server/static/index.html @@ -173,7 +173,7 @@ # Add this to .bashrc or its equivalent
transfer() {
# write to output to tmpfile because of progress bar -
tmpfile=$( mktemp -t transferXXX ); basefile=$(basename "$1" | sed -e 's/[^a-zA-Z0-9]/-/g'); curl --progress-bar --upload-file "$1" "https://transfer.sh/$basefile" >> $tmpfile; cat $tmpfile; rm -f $tmpfile; +
tmpfile=$( mktemp -t transferXXX ); basefile=$(basename "$1" | sed -e 's/[^a-zA-Z0-9.-_]/-/g'); curl --progress-bar --upload-file "$1" "https://transfer.sh/$basefile" >> $tmpfile; cat $tmpfile; rm -f $tmpfile;
}

alias transfer=transfer diff --git a/transfersh-web/index.html b/transfersh-web/index.html index 8482d66..bb763e7 100644 --- a/transfersh-web/index.html +++ b/transfersh-web/index.html @@ -147,7 +147,7 @@ include "includes/head.html" # Add this to .bashrc or its equivalent
transfer() {
# write to output to tmpfile because of progress bar -
tmpfile=$( mktemp -t transferXXX ); basefile=$(basename "$1" | sed -e 's/[^a-zA-Z0-9]/-/g'); curl --progress-bar --upload-file "$1" "https://transfer.sh/$basefile" >> $tmpfile; cat $tmpfile; rm -f $tmpfile; +
tmpfile=$( mktemp -t transferXXX ); basefile=$(basename "$1" | sed -e 's/[^a-zA-Z0-9.-_]/-/g'); curl --progress-bar --upload-file "$1" "https://transfer.sh/$basefile" >> $tmpfile; cat $tmpfile; rm -f $tmpfile;
}

alias transfer=transfer