forked from ungleich-public/cdist
		
	Shell check quoting
We're actually echo-ing the command, hence the escape in front of the quotes - the issue Shellcheck alludes too would actually occur, had the escaping bakcslashes been omitted.
This commit is contained in:
		
					parent
					
						
							
								d937d53f3d
							
						
					
				
			
			
				commit
				
					
						be92731c5c
					
				
			
		
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
					@ -34,7 +34,8 @@ if [ -f "$__object/parameter/rsync-opts" ]; then
 | 
				
			||||||
    done < "$__object/parameter/rsync-opts"
 | 
					    done < "$__object/parameter/rsync-opts"
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# shellcheck disable=SC2086
 | 
				
			||||||
echo rsync -a \
 | 
					echo rsync -a \
 | 
				
			||||||
    --no-owner --no-group \
 | 
					    --no-owner --no-group \
 | 
				
			||||||
    -e \"$__remote_exec\" \
 | 
					    -e \"${__remote_exec}\" \
 | 
				
			||||||
    -q "$@" "${source}/" "${remote_user}@${__target_host}:${destination}"
 | 
					    -q "$@" "${source}/" "${remote_user}@${__target_host}:${destination}"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue