mirror of
https://github.com/containers/podman.git
synced 2025-08-23 17:22:30 +08:00
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
|
|
}
|