From 01218eefa40b0824e27fce7ed9b797e4c4268130 Mon Sep 17 00:00:00 2001 From: Igor Pecovnik Date: Sun, 3 Nov 2024 09:41:42 +0100 Subject: [PATCH] UX bugfix: on first run we display some warnings if userspace is unsupported. It broke down. Since expanding distribution status with upgrade target, this condition stop working Related: https://github.com/armbian/build/pull/7303 --- packages/bsp/common/usr/lib/armbian/armbian-firstlogin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/bsp/common/usr/lib/armbian/armbian-firstlogin b/packages/bsp/common/usr/lib/armbian/armbian-firstlogin index 0013ed937..a983dc9a9 100755 --- a/packages/bsp/common/usr/lib/armbian/armbian-firstlogin +++ b/packages/bsp/common/usr/lib/armbian/armbian-firstlogin @@ -11,7 +11,7 @@ [[ -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) +[[ -n "$DISTRIB_CODENAME" && -f /etc/armbian-distribution-status ]] && DISTRIBUTION_STATUS=$(grep "$DISTRIB_CODENAME" /etc/armbian-distribution-status | cut -d"=" -f2 | cut -d";" -f1) . /etc/armbian-release