tmpfiles: return success from _f/_F on empty $arg
'[ -n "$arg" ] && _w' causes _f/_F to return the failure from the test when $arg is empty. Inverting the test causes the test and _f/_F to return success. Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
This commit is contained in:
		
				
					committed by
					
						
						William Hubbs
					
				
			
			
				
	
			
			
			
						parent
						
							74c6b554bc
						
					
				
				
					commit
					5647946e61
				
			@@ -61,7 +61,7 @@ _f() {
 | 
			
		||||
 | 
			
		||||
	if [ ! -e "$path" ]; then
 | 
			
		||||
		dryrun_or_real install -m"$mode" -o"$uid" -g"$gid" /dev/null "$path"
 | 
			
		||||
		[ -n "$arg" ] && _w "$@"
 | 
			
		||||
		[ -z "$arg" ] || _w "$@"
 | 
			
		||||
	fi
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -72,7 +72,7 @@ _F() {
 | 
			
		||||
	[ $CREATE -gt 0 ] || return 0
 | 
			
		||||
 | 
			
		||||
	dryrun_or_real install -m"$mode" -o"$uid" -g"$gid" /dev/null "$path"
 | 
			
		||||
	[ -n "$arg" ] && _w "$@"
 | 
			
		||||
	[ -z "$arg" ] || _w "$@"
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
_d() {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user