mirror of
https://github.com/etlegacy/Update-Installer.git
synced 2024-11-10 14:41:50 +00:00
Fix warning about undefined ZIP_FLAGS constant if the zip tool does not support bzip2
This commit is contained in:
parent
b8e1561155
commit
c3dee80640
1 changed files with 5 additions and 1 deletions
|
@ -42,7 +42,11 @@ def zip_supports_bzip2(zip_tool)
|
|||
end
|
||||
|
||||
BZIP2_AVAILABLE = zip_supports_bzip2(ZIP_TOOL)
|
||||
ZIP_FLAGS = "-Z bzip2" if BZIP2_AVAILABLE
|
||||
if (BZIP2_AVAILABLE)
|
||||
ZIP_FLAGS = "-Z bzip2"
|
||||
else
|
||||
ZIP_FLAGS = ""
|
||||
end
|
||||
|
||||
if (BZIP2_AVAILABLE)
|
||||
puts "Using bzip2 compression"
|
||||
|
|
Loading…
Reference in a new issue