]> code.delx.au - monosys/blob - bin/check-local-updates
check-local-updates
[monosys] / bin / check-local-updates
1 #!/bin/bash
2
3 set -eu
4
5 . /etc/os-release
6
7 function is_debian {
8 [ "$ID" = debian ] || [ "${ID_LIKE:-}" = debian ]
9 }
10
11 function is_arch {
12 [ "$ID" = arch ]
13 }
14
15 if is_debian; then
16 aptitude search ~U
17 fi
18
19 if is_arch; then
20 checkupdates
21 fi