Skip to content

Commit 4b2509c

Browse files
committed
filesExsts needed for macos as well
1 parent 43e6031 commit 4b2509c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Diff for: internal/helper/helper_darwin.go

+10
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,16 @@ func New(helperConfig Config) *DarwinConfigurator {
2626
}
2727
}
2828

29+
func filesExist(files ...string) error {
30+
for _, file := range files {
31+
if err := RegularFileExists(file); err != nil {
32+
return err
33+
}
34+
}
35+
36+
return nil
37+
}
38+
2939
func (c *DarwinConfigurator) Prerequisites() error {
3040
if err := filesExist(wireGuardBinary, wireGuardGoBinary); err != nil {
3141
return fmt.Errorf("verifying if file exists: %w", err)

0 commit comments

Comments
 (0)