Forgot to update the vars after debug

This commit is contained in:
Jeremy Gardais 2020-06-04 16:52:10 +02:00
parent 8ea845f74e
commit 19a233d145
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
1 changed files with 6 additions and 8 deletions

View File

@ -66,10 +66,9 @@ debug_message() { # {{{
is_apt_upgrade_absent() { # {{{
## Count the number of upgradable packages and substract 1 for the header
#local_apt_upgrade_number="$(apt list --upgradable \
#| wc -l \
#| awk '{print $1-1}')"
local_apt_upgrade_number="5"
local_apt_upgrade_number="$(apt list --upgradable \
| wc -l \
| awk '{print $1-1}')"
case "${local_apt_upgrade_number}" in
0 ) ## No available upgrade
@ -91,10 +90,9 @@ APT upgrade available for this system: ${RED}${local_apt_upgrade_number:=/dev/nu
is_apt_upgrade_present() { # {{{
## Count the number of upgradable packages and substract 1 for the header
#local_apt_upgrade_number="$(apt list --upgradable \
#| wc -l \
#| awk '{print $1-1}')"
local_apt_upgrade_number="5"
local_apt_upgrade_number="$(apt list --upgradable \
| wc -l \
| awk '{print $1-1}')"
case "${local_apt_upgrade_number}" in
0 ) ## No available upgrade