fix compatible with older versions

This commit is contained in:
Ing 2024-03-01 00:56:14 +08:00
parent dbf3567159
commit be69fa9bfa

View File

@ -17,6 +17,7 @@ function availableAddons() {
DESC="" DESC=""
[ -z "${DESC}" ] && DESC="$(readConfigKey "description.${LOCALE:-"en_US"}" "${D}/manifest.yml")" [ -z "${DESC}" ] && DESC="$(readConfigKey "description.${LOCALE:-"en_US"}" "${D}/manifest.yml")"
[ -z "${DESC}" ] && DESC="$(readConfigKey "description.en_US" "${D}/manifest.yml")" [ -z "${DESC}" ] && DESC="$(readConfigKey "description.en_US" "${D}/manifest.yml")"
[ -z "${DESC}" ] && DESC="$(readConfigKey "description" "${D}/manifest.yml")"
echo -e "${ADDON}\t${DESC:-"unknown"}" echo -e "${ADDON}\t${DESC:-"unknown"}"
done < <(find "${ADDONS_PATH}" -maxdepth 1 -type d | sort) done < <(find "${ADDONS_PATH}" -maxdepth 1 -type d | sort)
} }