aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/update-motd4
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