mirror of
https://github.com/containers/podman.git
synced 2026-09-17 16:40:50 -04:00
[NO NEW TESTS NEEDED] Signed-off-by: Jason T. Greene <jason.greene@redhat.com>
12 lines
156 B
Go
12 lines
156 B
Go
package env
|
|
|
|
import "os"
|
|
|
|
func getRuntimeDir() (string, error) {
|
|
tmpDir, ok := os.LookupEnv("TMPDIR")
|
|
if !ok {
|
|
tmpDir = "/tmp"
|
|
}
|
|
return tmpDir, nil
|
|
}
|