zip fix file check.

This commit is contained in:
Miroslav Šedivý 2021-07-04 21:36:42 +02:00
parent d3206bfd24
commit 18e2ba6390

View File

@ -33,7 +33,7 @@ func Zip(source, zipPath string) error {
return err
}
if !info.IsDir() || !info.Mode().IsRegular() {
if !info.IsDir() && !info.Mode().IsRegular() {
return nil
}