Skip to content

Commit

Permalink
Merge pull request #3 from SBU-BMI/develop
Browse files Browse the repository at this point in the history
Fixed import
  • Loading branch information
jbalsamo authored Sep 26, 2019
2 parents 5150d86 + b69587e commit f0b52af
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions uploadHeatmaps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -235,12 +235,13 @@ exitStatus=$?
# Check to see conversion process succeeded.
if [[ $exitStatus -eq 0 ]]
then
uploadDir="/mnt/data/heatmaps/${out}"
# Import into the quip database
for filename in ${out}/*.json ; do
for filename in ${uploadDir}/*.json ; do
mongoimport --port ${port} --host ${host} -d ${database} -c heatmap ${filename}
done
else
rm -f ${out}/*
rm -f ${uploadDir}/*
exit $exitStatus
fi

Expand Down

0 comments on commit f0b52af

Please sign in to comment.