We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 43e6031 commit 4b2509cCopy full SHA for 4b2509c
internal/helper/helper_darwin.go
@@ -26,6 +26,16 @@ func New(helperConfig Config) *DarwinConfigurator {
26
}
27
28
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
39
func (c *DarwinConfigurator) Prerequisites() error {
40
if err := filesExist(wireGuardBinary, wireGuardGoBinary); err != nil {
41
return fmt.Errorf("verifying if file exists: %w", err)
0 commit comments