fix quoting

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
Steven Armstrong 2014-01-20 12:09:55 +01:00
parent 00a7f4af93
commit c1141453fe

View file

@ -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"