From 6b481e598f9651fb074c9b6da64ec7e73d118260 Mon Sep 17 00:00:00 2001 From: lhark Date: Sat, 9 Sep 2017 01:58:50 -0400 Subject: [PATCH] Add Void Linux to system update checking --- functions | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/functions b/functions index a58d809..60f9b0d 100755 --- a/functions +++ b/functions @@ -268,11 +268,13 @@ check_rc_update () { } check_sys_update () { - case $(lsb_release -a | awk -F ':\t' '/Distributor ID/{print $2}') in + case $(lsb_release -i | awk -F ':\t' '/Distributor ID/{print $2}') in Arch) nb_maj=$(checkupdates | wc -l);; Debian|Ubuntu) nb_maj=$(aptitude search '~U' | wc -l);; + VoidLinux) + nb_maj=$(xbps-install -Sun | wc -l);; esac if [ $nb_maj -gt 0 ]; then echo "update_sys $nb_maj" >> /dev/shm/prompt_msg