From 3d0ba30b5c66409c8744f62373fb4bcd0abe7ff3 Mon Sep 17 00:00:00 2001 From: Akianonymus Date: Fri, 7 May 2021 22:30:54 +0530 Subject: [PATCH] upload.[sh|bash]: Show drive link in quiet mode too | Resolve #151 --- bash/release/gupload | 2 +- bash/upload.bash | 2 +- sh/release/gupload | 2 +- sh/upload.sh | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bash/release/gupload b/bash/release/gupload index d7b23ab..830e7ac 100755 --- a/bash/release/gupload +++ b/bash/release/gupload @@ -1895,7 +1895,7 @@ _process_arguments() { [[ -z ${HIDE_INFO} ]] && { _print_center "justify" "DriveLink" "${SHARE:+ (SHARED)}" "-" _support_ansi_escapes && [[ ${COLUMNS} -gt 45 ]] && _print_center "normal" "↓ ↓ ↓" ' ' - _print_center "normal" "https://drive.google.com/open?id=${1:-}" " " + "${QUIET:-_print_center}" "normal" "https://drive.google.com/open?id=${1:-}" " " } return 0 } diff --git a/bash/upload.bash b/bash/upload.bash index 993af23..3eeafe5 100755 --- a/bash/upload.bash +++ b/bash/upload.bash @@ -408,7 +408,7 @@ _process_arguments() { [[ -z ${HIDE_INFO} ]] && { _print_center "justify" "DriveLink" "${SHARE:+ (SHARED)}" "-" _support_ansi_escapes && [[ ${COLUMNS} -gt 45 ]] && _print_center "normal" "↓ ↓ ↓" ' ' - _print_center "normal" "https://drive.google.com/open?id=${1:-}" " " + "${QUIET:-_print_center}" "normal" "https://drive.google.com/open?id=${1:-}" " " } return 0 } diff --git a/sh/release/gupload b/sh/release/gupload index 28ea103..1a2e6e0 100755 --- a/sh/release/gupload +++ b/sh/release/gupload @@ -1838,7 +1838,7 @@ _process_arguments() { [ -z "${HIDE_INFO}" ] && { _print_center "justify" "DriveLink" "${SHARE:+ (SHARED)}" "-" _support_ansi_escapes && [ "$((COLUMNS))" -gt 45 ] 2>| /dev/null && _print_center "normal" '^ ^ ^' ' ' - _print_center "normal" "https://drive.google.com/open?id=${1:-}" " " + "${QUIET:-_print_center}" "normal" "https://drive.google.com/open?id=${1:-}" " " } return 0 } diff --git a/sh/upload.sh b/sh/upload.sh index 768a8cc..7c1575d 100755 --- a/sh/upload.sh +++ b/sh/upload.sh @@ -424,7 +424,7 @@ _process_arguments() { [ -z "${HIDE_INFO}" ] && { _print_center "justify" "DriveLink" "${SHARE:+ (SHARED)}" "-" _support_ansi_escapes && [ "$((COLUMNS))" -gt 45 ] 2>| /dev/null && _print_center "normal" '^ ^ ^' ' ' - _print_center "normal" "https://drive.google.com/open?id=${1:-}" " " + "${QUIET:-_print_center}" "normal" "https://drive.google.com/open?id=${1:-}" " " } return 0 }