diff options
author | Hsieh Chin Fan <typebrook@gmail.com> | 2021-08-25 20:47:50 +0800 |
---|---|---|
committer | Hsieh Chin Fan <typebrook@gmail.com> | 2021-08-25 20:47:50 +0800 |
commit | 7f8d3cca5e267f4d62971011831a72cbd43b47dc (patch) | |
tree | ab2178ba00820d9b3eff038507f7e174ae7a4183 | |
parent | 13a92bce3cd24ffd999864ec0da1cfe416d5b35a (diff) |
update
-rwxr-xr-x | tools/misc/transfer | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/misc/transfer b/tools/misc/transfer index 41fa6c9..1fc2117 100755 --- a/tools/misc/transfer +++ b/tools/misc/transfer | |||
@@ -12,11 +12,11 @@ if tty -s; then | |||
12 | fi; | 12 | fi; |
13 | if [ -d "$file" ];then | 13 | if [ -d "$file" ];then |
14 | file_name="$file_name.zip" ,; | 14 | file_name="$file_name.zip" ,; |
15 | (cd "$file" && zip -r -q - .) | curl --progress-bar --upload-file "-" "https://topo.tw/up/$file_name" | tee /dev/null,; | 15 | (cd "$file" && zip -r -q - .) | curl -w '\n' --progress-bar --upload-file "-" "https://topo.tw/up/$file_name" | tee /dev/null; |
16 | else | 16 | else |
17 | cat "$file" | curl --progress-bar --upload-file "-" "https://topo.tw/up/$file_name" | tee /dev/null; | 17 | cat "$file" | curl -w '\n' --progress-bar --upload-file "-" "https://topo.tw/up/$file_name" | tee /dev/null; |
18 | fi; | 18 | fi; |
19 | else | 19 | else |
20 | file_name=$1; | 20 | file_name=$1; |
21 | curl --progress-bar --upload-file "-" "https://topo.tw/up/$file_name" | tee /dev/null; | 21 | curl -w '\n' --progress-bar --upload-file "-" "https://topo.tw/up/$file_name" | tee /dev/null; |
22 | fi; | 22 | fi; |