diff options
Diffstat (limited to 'installpkg.go')
-rw-r--r-- | installpkg.go | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/installpkg.go b/installpkg.go index 82532a9..a0749bd 100644 --- a/installpkg.go +++ b/installpkg.go @@ -315,7 +315,15 @@ func extractSlackwarePkg(flags *InstallPkgFlags, fp string) error { } else if err != nil { return errors.Wrap(err, "installing package") } - + if flags.NoOverwrite { + ok, err := IsExist(filepath.Join(flags.Root, h.Name)) + if err != nil { + return err + } + if ok { + return nil + } + } return toRoot.FilterTar(h, r) }), ) |