diff --git a/scripts/export_src.sh b/scripts/export_src.sh index f584bb5..57323dd 100755 --- a/scripts/export_src.sh +++ b/scripts/export_src.sh @@ -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 .