update_binary-addons: remove ADDONS_GIT_DIR if delete git dirs is set

This commit is contained in:
Portisch 2021-10-04 11:33:02 +02:00
parent bec6d17054
commit eecccee3c7

View File

@ -167,6 +167,10 @@ for addontxt in ${ADDONS_REPO_LOCATION}/*-addons.txt ; do
PROCESSED="${PROCESSED}${ADDON}\n"
done
if [ "${KEEP_GIT_DIRS}" != "yes" ]; then
[ -d "${ADDONS_GIT_DIR}" ] && rm -rf "${ADDONS_GIT_DIR}"
fi
echo
echo "The following addons were skipped, please add packages for these addons:"
echo "[${SKIPPED_ADDONS}]"