From: James Bunton Date: Thu, 18 Jun 2020 13:37:41 +0000 (+1000) Subject: check-local-updates X-Git-Url: https://code.delx.au/monosys/commitdiff_plain/8d76f12be3b8a2f4091d2f8717a25ddcc3cfc0b6 check-local-updates --- diff --git a/bin/check-local-updates b/bin/check-local-updates new file mode 100644 index 0000000..52397b1 --- /dev/null +++ b/bin/check-local-updates @@ -0,0 +1,21 @@ +#!/bin/bash + +set -eu + +. /etc/os-release + +function is_debian { + [ "$ID" = debian ] || [ "${ID_LIKE:-}" = debian ] +} + +function is_arch { + [ "$ID" = arch ] +} + +if is_debian; then + aptitude search ~U +fi + +if is_arch; then + checkupdates +fi