From 8b6f0e0e1ff3bfffe5e65cd629726155d77fefd4 Mon Sep 17 00:00:00 2001 From: fepitre Date: Fri, 17 Aug 2018 22:07:33 +0200 Subject: [PATCH] appmenus: handle multiple releases common menus --- qubeize_image | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qubeize_image b/qubeize_image index a4936d9..d49278c 100755 --- a/qubeize_image +++ b/qubeize_image @@ -94,8 +94,12 @@ _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 +elif [ -d "${_appmenus_dir}/appmenus_${DIST//[0-9]*}_${TEMPLATE_FLAVOR}" ]; then + ln -s "${_appmenus_dir}/appmenus_${DIST//[0-9]*}_${TEMPLATE_FLAVOR}" appmenus elif [ -d "${_appmenus_dir}/appmenus_$DIST" ]; then ln -s "${_appmenus_dir}/appmenus_$DIST" appmenus +elif [ -d "${_appmenus_dir}/appmenus_${DIST//[0-9]*}" ]; then + ln -s "${_appmenus_dir}/appmenus_${DIST//[0-9]*}" appmenus elif [ -d "${_appmenus_dir}/appmenus" ]; then ln -s "${_appmenus_dir}/appmenus" appmenus else