Skip to content

Commit

Permalink
Fix containers#11418 - Default TMPDIR to /tmp on OS X
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Anckaert <[email protected]>
  • Loading branch information
MichaelAnckaert authored and mheon committed Sep 20, 2021
1 parent a255a2f commit c189c86
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/machine/qemu/options_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@ package qemu

import (
"os"

"github.com/pkg/errors"
)

func getRuntimeDir() (string, error) {
tmpDir, ok := os.LookupEnv("TMPDIR")
if !ok {
return "", errors.New("unable to resolve TMPDIR")
tmpDir = "/tmp"
}
return tmpDir, nil
}

0 comments on commit c189c86

Please sign in to comment.