mirror of https://github.com/restic/restic.git
Merge pull request #573 from restic/fix-osxfuse-travis
Fix osxfuse on Travis/darwin
This commit is contained in:
commit
e934966b54
|
@ -160,11 +160,14 @@ func (env *TravisEnvironment) Prepare() error {
|
||||||
|
|
||||||
if runtime.GOOS == "darwin" {
|
if runtime.GOOS == "darwin" {
|
||||||
// install the libraries necessary for fuse
|
// install the libraries necessary for fuse
|
||||||
if err := run("brew", "update"); err != nil {
|
for _, cmd := range [][]string{
|
||||||
return err
|
{"brew", "update"},
|
||||||
}
|
{"brew", "tap", "caskroom/cask"},
|
||||||
if err := run("brew", "cask", "install", "osxfuse"); err != nil {
|
{"brew", "cask", "install", "osxfuse"},
|
||||||
return err
|
} {
|
||||||
|
if err := run(cmd[0], cmd[1:]...); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue