diff options
| author | Hsieh Chin Fan <pham@topo.tw> | 2022-11-12 11:02:13 +0800 |
|---|---|---|
| committer | Hsieh Chin Fan <pham@topo.tw> | 2022-11-12 11:02:13 +0800 |
| commit | cc182d40158c9376ec080b7707f6d04bc043f35b (patch) | |
| tree | 87a8abcc00238ce2b10ad71ca4625dea35fb5e4c | |
| parent | 23de972209f154c32890ca1700d7a047cdeda4dd (diff) | |
Update
| -rw-r--r-- | alias | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -42,7 +42,7 @@ ssh.tar() { | |||
| 42 | } | 42 | } |
| 43 | ssh.up() { | 43 | ssh.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%/} |