From 16bac66c1571b97da115927bfafca0a9c1d94004 Mon Sep 17 00:00:00 2001 From: MilhouseVH Date: Sat, 22 Dec 2018 20:44:38 +0000 Subject: [PATCH] config/functions: address quibble --- config/functions | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/functions b/config/functions index 27c2c16ad6..bb808f51d5 100644 --- a/config/functions +++ b/config/functions @@ -845,8 +845,8 @@ source_package() { . ${PKG_DIR}/package.mk || die "FAILURE: an error occurred while sourcing ${PKG_DIR}/package.mk" cd "${opwd}" - [ -z "$PKG_SHORTDESC" ] && PKG_SHORTDESC="$PKG_NAME (autogenerated)" - [ -z "$PKG_LONGDESC" ] && PKG_LONGDESC="$PKG_NAME (autogenerated)" + PKG_SHORTDESC="${PKG_SHORTDESC:-${PKG_NAME} (autogenerated)}" + PKG_LONGDESC="${PKG_LONGDESC:-${PKG_NAME} (autogenerated)}" if [ "$PKG_IS_ADDON" = "yes" -o "$PKG_IS_ADDON" = "embedded" ] ; then [ -z $PKG_SECTION ] && PKG_ADDON_ID="$PKG_NAME" || PKG_ADDON_ID="${PKG_SECTION//\//.}.$PKG_NAME"