Skip to content
Snippets Groups Projects
Commit 521503a4 authored by vehnem's avatar vehnem
Browse files

databus-release.sh: only latest dumps

parent efedf6d6
No related branches found
No related tags found
No related merge requests found
......@@ -43,8 +43,11 @@ fi
# creates links in databus dir
# iterate all .ttl.bz2 files
# uncomment for testing
for path in $(find "$EXTRACTIONBASEDIR" -name "*.ttl.bz2" | sort); do
mapAndCopy $path
latestDumpDate=$(find "$EXTRACTIONBASEDIR" -mindepth 2 -maxdepth 2 -type d | sort -n | tail -1 | xargs basename)
# uncomment next line for all dumps
# latestDumpDate=".*"
for path in $(find "$EXTRACTIONBASEDIR" -regex ".*/$latestDumpDate/.*\.ttl.bz2" | sort); do
echo $path
done
......
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