diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/update-motd | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/update-motd b/bin/update-motd index 8fe4c81..658f859 100755 --- a/bin/update-motd +++ b/bin/update-motd @@ -23,8 +23,11 @@ uname -a >> /tmp/motd echo >> /tmp/motd # update package cache +set +eu pacman -Sy 2>&1 > /dev/null pacman -Qu > /tmp/updates +set -eu + # show updatable packages if [ -s /tmp/updates ]; then echo "Package updates available:" >> /tmp/motd @@ -49,3 +52,4 @@ else cat /tmp/motd > /etc/motd fi +exit 0 |