fix quoting
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
		
					parent
					
						
							
								00a7f4af93
							
						
					
				
			
			
				commit
				
					
						c1141453fe
					
				
			
		
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -33,7 +33,7 @@ fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# stop mdadm raids if any
 | 
					# stop mdadm raids if any
 | 
				
			||||||
if [ -r /proc/mdstat ]; then
 | 
					if [ -r /proc/mdstat ]; then
 | 
				
			||||||
   md_name="\$(awk "/$disk_name/ {print \$1}" /proc/mdstat)"
 | 
					   md_name="\$(awk '/$disk_name/ {print \$1}' /proc/mdstat)"
 | 
				
			||||||
   if [ -n "\$md_name" ]; then
 | 
					   if [ -n "\$md_name" ]; then
 | 
				
			||||||
      if command -v mdadm >/dev/null; then
 | 
					      if command -v mdadm >/dev/null; then
 | 
				
			||||||
         mdadm --stop "/dev/\$md_name"
 | 
					         mdadm --stop "/dev/\$md_name"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue