grub-script-check

The program grub-script-check takes a GRUB script file and checks it for syntax errors. It may take a path as a non-option argument. If none is supplied, it will read from stdin. More information: <https://www.gnu.org/software/grub/manual/grub/html_node/Invoking-grub_002dscript_002dcheck.html>.

Debian Debian
RUN apt-get update && \ apt-get install -y grub-common
Ubuntu
RUN apt-get update && \ apt-get install -y grub-common
Alpine
RUN apk add grub
Arch Arch Linux
RUN pacman -S --noconfirm grub
image/svg+xml Kali Linux
RUN apt-get update && \ apt-get install -y grub-common
CentOS
RUN yum install -y grub
Raspbian
RUN apt-get update && \ apt-get install -y grub-common
click the source code to copy install grub-script-check on any operating system with command-not-found.com