X-Git-Url: https://code.delx.au/monosys/blobdiff_plain/189cd1165454dc4b875e1874ef385c41928c2a5e..8d76f12be3b8a2f4091d2f8717a25ddcc3cfc0b6:/bin/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