Skip to content
This repository was archived by the owner on Dec 2, 2020. It is now read-only.

Commit 824b986

Browse files
committed
Merge pull request #43 from gorsuch/darwin-only
Only run 'brew update' if your platform is Darwin
2 parents ce6399b + ca0142b commit 824b986

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

manifests/repo.pp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@
66
class homebrew::repo {
77
include homebrew
88

9-
exec { 'brew update':
10-
refreshonly => true,
11-
require => Class['homebrew']
9+
if $::osfamily == 'Darwin' {
10+
exec { 'brew update':
11+
refreshonly => true,
12+
require => Class['homebrew']
13+
}
1214
}
1315
}

0 commit comments

Comments
 (0)