Skip to content

Commit

Permalink
Update silo_import_job.sh
Browse files Browse the repository at this point in the history
test2
  • Loading branch information
anna-parker authored Sep 11, 2024
1 parent 2e7e765 commit b2244d8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions kubernetes/loculus/silo_import_job.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,8 @@ download_data() {
exit_code=$?
set -e

c=`tail -c 2 $new_input_data`
if [ "$c" != "" ]; then
echo "No 2 newlines at end of $new_input_data, instead $c, stream not completed, cleaning up and exiting"
if [ -s "$new_input_data" ] && tail -c2 "$new_input_data" | od -An -t x1 | grep -q "0a 0a"; then
echo "No 2 newlines at end of $new_input_data, stream not completed, cleaning up and exiting"
rm -rf "$new_input_data_dir"
exit $exit_code
fi
Expand Down

0 comments on commit b2244d8

Please sign in to comment.