Closed rndmh3ro closed 9 years ago
I didn't write that part of the install script, but anyways if I use command -v grub2-install on my system which has grub2 I get an empty string.
Could it just be redirected to /dev/null
?
I might be wrong but isn't the entire point of the which
to check if you have the command, even though you don't?
Yeah so due to how Grub gets package between distros, which is used to see if the grub mkconfig command can be run in the terminal, and different distros named it different things. This just checks that it can be run in the terminal and that it's a certain version number.
Just a minor nitpick. If I run the install script without "grub2-install" installed, this is the output:
If you use
command -v grub2-install
, the output is empty and no error message is created.