diff --git a/cdist/conf/type/__install_reset_disk/gencode-remote b/cdist/conf/type/__install_reset_disk/gencode-remote index e8e9cf8c..42ed00c6 100755 --- a/cdist/conf/type/__install_reset_disk/gencode-remote +++ b/cdist/conf/type/__install_reset_disk/gencode-remote @@ -33,7 +33,7 @@ fi # stop mdadm raids if any 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 command -v mdadm >/dev/null; then mdadm --stop "/dev/\$md_name"