mirror of
https://github.com/octoleo/restic.git
synced 2024-12-22 19:08:55 +00:00
Fix osxfuse on Travis/darwin
This commit is contained in:
parent
2a2fb74ba8
commit
bd9f23f1d2
@ -160,11 +160,14 @@ func (env *TravisEnvironment) Prepare() error {
|
||||
|
||||
if runtime.GOOS == "darwin" {
|
||||
// install the libraries necessary for fuse
|
||||
if err := run("brew", "update"); err != nil {
|
||||
for _, cmd := range [][]string{
|
||||
{"brew", "update"},
|
||||
{"brew", "tap", "caskroom/cask"},
|
||||
{"brew", "cask", "install", "osxfuse"},
|
||||
} {
|
||||
if err := run(cmd[0], cmd[1:]...); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := run("brew", "cask", "install", "osxfuse"); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user