From: James Bunton Date: Sat, 20 Jun 2020 05:13:25 +0000 (+1000) Subject: healthcheck: packages match ID_LIKE=arch X-Git-Url: https://code.delx.au/monosys/commitdiff_plain/06b5c1b2a94cd1d10d6bb0972fbd42766bfad0d2 healthcheck: packages match ID_LIKE=arch --- diff --git a/healthcheck/packages b/healthcheck/packages index ab6260a..0df8c33 100755 --- a/healthcheck/packages +++ b/healthcheck/packages @@ -9,20 +9,16 @@ fi . /etc/os-release -function is_debian { - [ "$ID" = debian ] || [ "${ID_LIKE:-}" = debian ] +function is_distro { + [ "$ID" = "$1" ] || [ "${ID_LIKE:-}" = "$1" ] } -function is_arch { - [ "$ID" = arch ] -} - -if is_debian; then +if is_distro debian; then echo "# aptorphan" aptorphan 1>&2 fi -if is_arch; then +if is_distro arch; then echo "# pacorphan" pacorphan 1>&2 fi