That advise is incorrect, because GRUB_DISTRIBUTOR is the human-readable name. grub also mangles it to a machine-readable name because it doesn't have two vars, but still.
The mangling is:
$(echo ${GRUB_DISTRIBUTOR} | tr 'A-Z' 'a-z' | cut -d' ' -f1 | LC_ALL=C sed 's,[^[:alnum:]_],_,g')
That advise is incorrect, because GRUB_DISTRIBUTOR is the human-readable name. grub also mangles it to a machine-readable name because it doesn't have two vars, but still.
The mangling is:
$(echo ${GRUB_DISTRIBUTOR} | tr 'A-Z' 'a-z' | cut -d' ' -f1 | LC_ALL=C sed 's,[^[: alnum:] _],_,g' )