Wrongly enabling os-prober when its variable is non boolean
manjaro-update-system.sh is enabling os-prober
in any scenario where its variable has a non boolean value.
But in reality the variable can be something else than a boolean. It can be coded, as in grub-smart.
Instead manjaro-update-system.sh
shall simply check if the variable is not present at all:
# enable os-prober if not set
config="/etc/default/grub"
if [[ -f "${config}" ]] && ! grep --quiet "GRUB_DISABLE_OS_PROBER" "${config}"; then
printf "GRUB_DISABLE_OS_PROBER=false\n" >> "${config}"
if ! err="$(update-grub 2>&1)"; then
echo "${err}" >&2
fi
fi