We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4485db6 + e3ba70c commit c3193c1Copy full SHA for c3193c1
cob_datapipeline/scripts/sc_ingest_marc.sh
@@ -29,5 +29,9 @@ do
29
echo "Indexing file: "$file
30
bundle exec cob_index $COMMAND $(aws s3 presign s3://$BUCKET/$file)
31
processed_file=$(echo $file | sed 's/new-updated/processed-new-updated/' | sed 's/deleted/processed-deleted/')
32
- aws s3 mv s3://$BUCKET/$file s3://$BUCKET/$processed_file
+
33
+ # In full reindex context $file and $processed_file are equal.
34
+ if [ "$file" != "$processed_file" ]; then
35
+ aws s3 mv s3://$BUCKET/$file s3://$BUCKET/$processed_file
36
+ fi
37
done
0 commit comments