File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -178,7 +178,7 @@ while [[ $# -gt 0 ]]; do
178
178
-S | --no-spin) NOSPIN=1; shift ;;
179
179
-u | --update) update; exit 0 ;;
180
180
--version | version) version; exit 0 ;;
181
- --) shift ; CURLARGS=$@ ; break ;;
181
+ --) shift ; CURLARGS=$@ ; break ;;
182
182
* ) if [[ $HOST ]]; then
183
183
if [[ $FILE ]]; then SUMALGO=" ${SUMALGO:- $1 } " ; else FILE=" $1 " ; fi
184
184
else HOST=$1 ; fi
@@ -230,11 +230,9 @@ else
230
230
-H 'Upload-Metadata: $META ' \
231
231
-X POST $HOST ${BASEPATH:-/ files/ } "
232
232
233
- TUSURL=${HEADERS[Location]}
234
- [[ $TUSURL ]] || error " Tus server replied with empty location. Try changing --base-path param." 1
235
-
236
233
# save location config
237
- tus-config " .[\" $KEY \" ].location" " $TUSURL "
234
+ TUSURL=${HEADERS[Location]}
235
+ [[ $TUSURL ]] && tus-config " .[\" $KEY \" ].location" " $TUSURL "
238
236
fi
239
237
240
238
# patch request
You can’t perform that action at this time.
0 commit comments