Fix two small cosmetic bug (#4357)

- debian showed not supported due to absence of lsb-release
- motd didn't address displaying update aval correct
This commit is contained in:
Igor Pečovnik 2022-10-27 18:51:58 +02:00 committed by GitHub
parent bd260b20f8
commit 58ed41d385
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -32,7 +32,7 @@ if [[ $NUM_UPDATES_ONHOLD -gt 0 ]] && grep -q linux /var/cache/apt/archives/upda
echo -en "\e[31mKernel and firmware upgrades disabled:\e[0m \e[1marmbian-config\e[0m "
fi
if [[ $NUM_UPDATES -gt 0 ]] || [[ $NUM_UPDATES_ONHOLD -gt 0 ]]; then
if [[ $NUM_UPDATES -gt 0 ]] && [[ $NUM_UPDATES_ONHOLD -gt 0 ]]; then
echo -e "]"
echo -e "Last check: \e[92m$DATE\e[0m"
echo

View File

@ -8,6 +8,8 @@
# read distribution status
[[ -f /etc/lsb-release ]] && . /etc/lsb-release
[[ -f /etc/os-release ]] && . /etc/os-release
[[ -z "$DISTRIB_CODENAME" ]] && DISTRIB_CODENAME="${VERSION_CODENAME}"
[[ -n "$DISTRIB_CODENAME" && -f /etc/armbian-distribution-status ]] && DISTRIBUTION_STATUS=$(grep "$DISTRIB_CODENAME" /etc/armbian-distribution-status | cut -d"=" -f2)
. /etc/armbian-release