Skip to content

Commit 6c9ff98

Browse files
committed
Dropbox-Uploader Pull Request: Always show the progress bar if it's requested
You have to explicitly request curl's progress bar anyway, so show it even if -q is also used. Sometimes you might only want curl's progress bar. Ref: andreafabrizi/Dropbox-Uploader#134
1 parent cc77fd8 commit 6c9ff98

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

support/drop/dropbox_uploader.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ function db_simple_upload_file
467467
local FILE_SRC=$(normalize_path "$1")
468468
local FILE_DST=$(normalize_path "$2")
469469

470-
if [[ $SHOW_PROGRESSBAR == 1 && $QUIET == 0 ]]; then
470+
if [[ $SHOW_PROGRESSBAR == 1 ]]; then
471471
CURL_PARAMETERS="--progress-bar"
472472
LINE_CR="\n"
473473
else
@@ -708,7 +708,7 @@ function db_download_file
708708
local FILE_SRC=$(normalize_path "$1")
709709
local FILE_DST=$(normalize_path "$2")
710710

711-
if [[ $SHOW_PROGRESSBAR == 1 && $QUIET == 0 ]]; then
711+
if [[ $SHOW_PROGRESSBAR == 1 ]]; then
712712
CURL_PARAMETERS="--progress-bar"
713713
LINE_CR="\n"
714714
else

0 commit comments

Comments
 (0)