ksh/updates-void.ksh: cambio de nombre

This commit is contained in:
Tuxliban Torvalds 2023-09-15 19:19:28 -06:00
parent 8b6abde4a8
commit 1439c01673
1 changed files with 4 additions and 4 deletions

View File

@ -2,7 +2,7 @@
# v1.0 - 25/05/2023
#
# Script que revisa si existen actualizaciones disponibles para el sistema
# Dependencas: dzen2
# Dependencias: dzen2
#
# Lista de códigos de salida
# 0 - Operación exitosa
@ -34,8 +34,8 @@ function msg {
}
if deps; then
if [[ -z $broken && -n $updates ]]; then
"$HOME"/Dropbox/Gitea/scripts/varios/dunst_sound 2> /dev/null
if [[ -z $broken && $updates > 0 ]]; then
"$HOME"/Dropbox/Gitea/scripts/varios/alert 2>/dev/null
printf '%s\n' "ACTUALIZACIONES DISPONIBLES: $updates" "$pkgs" | msg &
rm -rf ${tmp_updates}
exit 0
@ -45,7 +45,7 @@ if deps; then
rm -rf ${tmp_updates}
exit 3
else
[[ -z $updates ]] || rm -rf ${tmp_updates}
[[ $updates == 0 ]] && rm -rf ${tmp_updates}
exit 4
fi
fi