/etc/default/grub: line 6: $'# GRUB boot loader configuration\n\nGRUB_DEFAULT=0\nGRUB_TIMEOUT=5\nGRUB_DISTRIBUTOR=EndeavourOS\nGRUB_CMDLINE_LINUX_DEFAULT=nowatchdog': command not found
Welcome!
Please show the contents of /etc/default/grub.
NEVERMIND! Just realized I’m so stupid that I mistyped something in line 1 and didn’t see it. Corrected it and the grub generation command finally works.