forked from ungleich-public/cdist
		
	add missing leading / to destination in case object_id is taken
Signed-off-by: Nico Schottelius <nico@freiheit.schottelius.org>
This commit is contained in:
		
					parent
					
						
							
								34253a5c30
							
						
					
				
			
			
				commit
				
					
						0ddc848b1e
					
				
			
		
					 2 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -4,7 +4,7 @@ remote_user=$(cat "$__object/parameter/remote-user")
 | 
			
		|||
if [ -f "$__object/parameter/destination" ]; then
 | 
			
		||||
    destination=$(cat "$__object/parameter/destination")
 | 
			
		||||
else
 | 
			
		||||
    destination="$__object_id"
 | 
			
		||||
    destination="/$__object_id"
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
set --
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
if [ -f "$__object/parameter/destination" ]; then
 | 
			
		||||
    destination=$(cat "$__object/parameter/destination")
 | 
			
		||||
else
 | 
			
		||||
    destination="$__object_id"
 | 
			
		||||
    destination="/$__object_id"
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
ownergroup=""
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue