ksh/updates-void.ksh: cambio de nombre
This commit is contained in:
parent
8b6abde4a8
commit
1439c01673
|
@ -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
|
Loading…
Reference in New Issue