Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions pkg/plugins/if_os.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ func OnlyIfOS(l logger.Interface, s schema.Stage, fs vfs.FS, console Console) er
return err
}

// Get the OS name from the system
system.GetSysInfo()
if system.OS.Name == "" {
return fmt.Errorf("%s as system os name is empty", fmt.Sprintf(SkipOnlyOs, s.OnlyIfOs))
}
Expand All @@ -46,8 +44,6 @@ func OnlyIfOSVersion(l logger.Interface, s schema.Stage, fs vfs.FS, console Cons
return err
}

// Get the OS version from the system
system.GetSysInfo()
if system.OS.Version == "" {
return fmt.Errorf("%s as system version is empty", fmt.Sprintf(SkipOnlyOsVersion, s.OnlyIfOsVersion))
}
Expand Down
Loading