mirror of https://github.com/containers/podman.git
Fix #11418 - Default TMPDIR to /tmp on OS X
Signed-off-by: Michael Anckaert <michael.anckaert@sinax.be>
This commit is contained in:
parent
af58cb15d2
commit
e151f4c9f7
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue