Skip to content
Snippets Groups Projects
Commit 19072e2a authored by vehnem's avatar vehnem
Browse files

databus-release.sh: only latest dumps regex match datedirs

parent 6baa4b60
No related branches found
No related tags found
No related merge requests found
...@@ -43,7 +43,7 @@ fi ...@@ -43,7 +43,7 @@ fi
# creates links in databus dir # creates links in databus dir
# iterate all .ttl.bz2 files # iterate all .ttl.bz2 files
# uncomment for testing # uncomment for testing
latestDumpDate=$(find "$EXTRACTIONBASEDIR" -mindepth 2 -maxdepth 2 -type d | sort -n | tail -1 | xargs basename) latestDumpDate=$(find "$EXTRACTIONBASEDIR" -mindepth 2 -maxdepth 2 -type d -regextype grep -regex ".*[0-9]\{8\}$" | sort -n | tail -1 | xargs basename)
# uncomment next line for all dumps # uncomment next line for all dumps
# latestDumpDate=".*" # latestDumpDate=".*"
for path in $(find "$EXTRACTIONBASEDIR" -regex ".*/$latestDumpDate/.*\.ttl.bz2" | sort); do for path in $(find "$EXTRACTIONBASEDIR" -regex ".*/$latestDumpDate/.*\.ttl.bz2" | sort); do
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment