Do not show extract progress on Windows when unzip is used (#20)

This commit is contained in:
Slava 2024-11-17 11:19:34 +02:00 committed by GitHub
parent d4c534bb37
commit fc00519885
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -167,7 +167,7 @@ for ARCHIVE in "${ARCHIVES[@]}"; do
if [[ "${OS}" == "windows" ]]; then
if unzip -v &> /dev/null; then
unzip -o "${TEMP_DIR}/${FILE_NAME}" -d "${TEMP_DIR}"
unzip -q -o "${TEMP_DIR}/${FILE_NAME}" -d "${TEMP_DIR}"
[[ $? -ne 0 ]] && show_fail "${message}"
else
C:/Windows/system32/tar.exe -xzf "${TEMP_DIR}/${FILE_NAME}" -C "${TEMP_DIR}"