Update scripts/export_src.sh

This commit is contained in:
Roman Pelmegov 2023-03-08 19:34:19 +00:00
parent 082f618425
commit 3321f3bdfd
1 changed files with 4 additions and 0 deletions

View File

@ -61,6 +61,10 @@ if [ "$ERR_PATHS" ]; then
exit 1
fi
if [ -z "${EXPORT_DATE}" ]; then
EXPORT_DATE="${LAST_COMMIT_DATE}"
fi
find . -name ".git*" -print0 | xargs -0 rm -rf
zip -r -q "${SRC_FOLDER_NAME}-${EXPORT_DATE}".zip .