Fix parameter expansion for appmenus directory

This commit is contained in:
Frederic Pierret (Epitre) 2017-09-06 18:59:42 +02:00
parent 7c053165f3
commit 9a1032e2eb
No known key found for this signature in database
GPG Key ID: 42FCB65E84F3267C

View File

@ -85,7 +85,7 @@ export INSTALLDIR=mnt
# Create App Menus
# ------------------------------------------------------------------------------
echo "--> Choosing appmenus whitelists..."
_appmenus_dir="${APPMENUS_DIR-${SCRIPTSDIR}}"
_appmenus_dir="${APPMENUS_DIR:-${SCRIPTSDIR}}"
rm -f appmenus
if [ -d "${_appmenus_dir}/appmenus_${DIST}_${TEMPLATE_FLAVOR}" ]; then
ln -s "${_appmenus_dir}/appmenus_${DIST}_${TEMPLATE_FLAVOR}" appmenus