Skip to content

Commit

Permalink
possible fix for #540
Browse files Browse the repository at this point in the history
  • Loading branch information
frostworx committed Oct 6, 2022
1 parent 0fb8eac commit 6043a30
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions steamtinkerlaunch
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6043a30

Please sign in to comment.