On Thu, Sep 07, 2023 at 10:21:05AM -0000, Julian Andres Klode wrote: > +GRUB_DISTRIBUTOR=`. /etc/os-release && echo $NAME || echo @DPKG_VENDOR@`
Maybe you want
GRUB_DISTRIBUTOR=`. /etc/os-release; echo ${NAME:-@DPKG_VENDOR@}`
To handle the uncommon case of /etc/os-release exists but is broken (missing NAME=)
On Thu, Sep 07, 2023 at 10:21:05AM -0000, Julian Andres Klode wrote: OR=`. /etc/os-release && echo $NAME || echo @DPKG_VENDOR@`
> +GRUB_DISTRIBUT
Maybe you want
GRUB_DISTRIBUTOR=`. /etc/os-release; echo ${NAME: -@DPKG_ VENDOR@ }`
To handle the uncommon case of /etc/os-release exists but is broken (missing
NAME=)