mirror of
				https://github.com/containers/podman.git
				synced 2025-11-04 08:56:05 +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
 | 
						|
}
 |