mirror of
				https://github.com/moby/moby.git
				synced 2022-11-09 12:21:53 -05:00 
			
		
		
		
	[integration-cli] changes syntax to support older version of jq
Fixes a bug where a test would fail due to jq syntax not being supported on all versions. Changes the syntax to an equivalent way also supported on older versions. Signed-off-by: Christopher Jones <tophj@linux.vnet.ibm.com>
This commit is contained in:
		
							parent
							
								
									29d85753cd
								
							
						
					
					
						commit
						1d0a5eb33f
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -38,7 +38,7 @@ case $1 in
 | 
			
		|||
 | 
			
		||||
		# Remove the server from the list
 | 
			
		||||
		list=$(<$TEMP/$listFile)
 | 
			
		||||
		echo "$list" | jq "del(.\"${in}\")" > $TEMP/$listFile
 | 
			
		||||
		echo "$list" | jq "del(.[\"${in}\"])" > $TEMP/$listFile
 | 
			
		||||
		;;
 | 
			
		||||
	"list")
 | 
			
		||||
		if [[ ! -f $TEMP/$listFile ]]; then
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue