Update unzip command in zrep script to use -aa
flag for better compatibility.
- Use `-aa` flag in unzip command for better compatibility with various zip formats.
This commit is contained in:
parent
4337b13a28
commit
3830e58ebb
2
zrep
2
zrep
@ -614,7 +614,7 @@ function zrep_install_package() {
|
|||||||
local zipFile="${tmpDir}/${author}-${script}-${version}.zip"
|
local zipFile="${tmpDir}/${author}-${script}-${version}.zip"
|
||||||
zrep_download_package "${zipFile}" "${dlurl}"
|
zrep_download_package "${zipFile}" "${dlurl}"
|
||||||
|
|
||||||
unzip -o "${zipFile}" -d "${config[main_zrep_install_dir]}"
|
unzip -aa "${zipFile}" -o -d "${config[main_zrep_install_dir]}"
|
||||||
|
|
||||||
if [[ $? -ne 0 ]]; then
|
if [[ $? -ne 0 ]]; then
|
||||||
zrep_msg debug "\nError: Failed to unzip the package."
|
zrep_msg debug "\nError: Failed to unzip the package."
|
||||||
|
Loading…
Reference in New Issue
Block a user