diff --git a/pacman-zbm-syslinux-regen.sh b/pacman-zbm-syslinux-regen.sh index d74ac9a..3a66e3c 100644 --- a/pacman-zbm-syslinux-regen.sh +++ b/pacman-zbm-syslinux-regen.sh @@ -8,7 +8,7 @@ boot_disk="$(findmnt --noheadings --target "${boot_dir}" --output 'SOURCE')" || 'Cowardly exiting. No syslinux files nor MBR were overwritten.' exit 1 } -if [[ "$(<<<"${boot_dir}" wc -l)" -gt '1' ]]; then +if [[ "$(<<<"${boot_fs}" wc -l)" -gt '1' ]]; then printf -- '%s\n' \ 'More than one drive mounted at '"'${boot_dir}'"' boot dir.' \ 'Cowardly exiting. No syslinux files nor MBR were overwritten.'