firmware: make sure to use the right approach #5537

This commit is contained in:
Franco Fichtner 2022-07-01 09:52:09 +02:00
parent 7d81b8ff16
commit b79153342c

View File

@ -106,8 +106,10 @@ esac
echo
CHANGELOG=$(configctl firmware changelog text ${CHANGELOG})
if [ "${CHANGELOG}" ]; then
if [ -n "${CHANGELOG}" ]; then
CHANGELOG=$(configctl firmware changelog text ${CHANGELOG})
fi
if [ -n "${CHANGELOG}" ]; then
echo "${CHANGELOG}" | less
fi