Update to newest pkglib
This commit is contained in:
parent
1bdcb6e3b4
commit
7ff2ecf7fe
11 changed files with 95 additions and 41 deletions
|
|
@ -46,8 +46,12 @@ var errNoGraphDBZip = exit.Error{
|
|||
}
|
||||
|
||||
func (s systemupdate) AfterParse() error {
|
||||
// TODO: Use a generic environment here!
|
||||
if !fsx.IsRegular(s.Positionals.GraphdbZip) {
|
||||
isFile, err := fsx.IsRegular(s.Positionals.GraphdbZip, true)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if !isFile {
|
||||
return errNoGraphDBZip.WithMessageF(s.Positionals.GraphdbZip)
|
||||
}
|
||||
return nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue