From 6043a303e33ff73d04b2df7dd2e0e35abe909dcb Mon Sep 17 00:00:00 2001 From: frostworx Date: Thu, 6 Oct 2022 16:31:29 +0200 Subject: [PATCH] possible fix for #540 --- steamtinkerlaunch | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/steamtinkerlaunch b/steamtinkerlaunch index 88968ec8..ab4ce031 100755 --- a/steamtinkerlaunch +++ b/steamtinkerlaunch @@ -769,8 +769,13 @@ function dlCheck { if [ "$DLTITLE" != "$NON" ]; then writelog "INFO" "${FUNCNAME[0]} - $DLTITLE" notiShow "$(strFix "$NOTY_DLCUSTOMPROTON" "$DLDST")" "S" - writelog "INFO" "${FUNCNAME[0]} - '$WGET -q --show-progress $DLSRC -O $DLDST'" - "$WGET" -q --show-progress "$DLSRC" -O "$DLDST" 2>&1 | sed -u -e "s:\.::g;s:.*K::g;s:^[[:space:]]*::g" + if grep -q "show-progress" <<< "$("$WGET" --help)"; then + writelog "INFO" "${FUNCNAME[0]} - '$WGET -q --show-progress $DLSRC -O $DLDST'" + "$WGET" -q --show-progress "$DLSRC" -O "$DLDST" 2>&1 | sed -u -e "s:\.::g;s:.*K::g;s:^[[:space:]]*::g" + else + writelog "INFO" "${FUNCNAME[0]} - '$WGET -q $DLSRC -O $DLDST'" + "$WGET" -q "$DLSRC" -O "$DLDST" 2>&1 | sed -u -e "s:\.::g;s:.*K::g;s:^[[:space:]]*::g" + fi else "$WGET" -q "$DLSRC" -O "$DLDST" 1>/dev/null 2>&1 fi