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 committed by Matthias Reichl
parent 3d59376eda
commit 7a95a37153

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}]"