aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorHsieh Chin Fan <pham@topo.tw>2022-11-12 11:02:13 +0800
committerHsieh Chin Fan <pham@topo.tw>2022-11-12 11:02:13 +0800
commitcc182d40158c9376ec080b7707f6d04bc043f35b (patch)
tree87a8abcc00238ce2b10ad71ca4625dea35fb5e4c
parent23de972209f154c32890ca1700d7a047cdeda4dd (diff)
Update
-rw-r--r--alias2
1 files changed, 1 insertions, 1 deletions
diff --git a/alias b/alias
index b53944c..955aedc 100644
--- a/alias
+++ b/alias
@@ -42,7 +42,7 @@ ssh.tar() {
42} 42}
43ssh.up() { 43ssh.up() {
44 set -o pipefail 44 set -o pipefail
45 filename=`basename $1` 45 filename=${3:-`basename $1`}
46 # Upload to absolution path 46 # Upload to absolution path
47 if [[ $2 =~ '^/' ]]; then 47 if [[ $2 =~ '^/' ]]; then
48 folder=${2%/} 48 folder=${2%/}