@tost you’re right my bad!
(3)
check_distro3() { for distro in debian fedora error do grep -qe $distro /etc/os-release && break done case $distro in debian) : # do debian-based thing ;; fedora) : # do fedora-based thing ;; *) : # err distro not supported ;; esac }