Merge "Allow empty zip file in extra files in install command."
This commit is contained in:
@@ -3282,8 +3282,9 @@ func (m *moduleContext) installFile(installPath InstallPath, name string, srcPat
|
||||
|
||||
extraCmds := ""
|
||||
if extraZip != nil {
|
||||
extraCmds += fmt.Sprintf(" && unzip -qDD -d '%s' '%s'",
|
||||
extraCmds += fmt.Sprintf(" && ( unzip -qDD -d '%s' '%s' 2>&1 | grep -v \"zipfile is empty\"; exit $${PIPESTATUS[0]} )",
|
||||
extraZip.dir.String(), extraZip.zip.String())
|
||||
extraCmds += " || ( code=$$?; if [ $$code -ne 0 -a $$code -ne 1 ]; then exit $$code; fi )"
|
||||
implicitDeps = append(implicitDeps, extraZip.zip)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user