Skip to content

Commit

Permalink
further cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mmorgantaylor committed Mar 11, 2021
1 parent c086d94 commit 7de0f32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/variantstore/wdl/ImportGenomes.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ task ReleaseLoadLock {
EXISTING_LOCK_ID=$(gsutil cat ${LOCKFILE})
CURRENT_RUN_ID="~{run_uuid}"

if [ "${EXISTING_LOCK_ID}" = "${CURRENT_RUN_ID}" ]; then
if [ ${EXISTING_LOCK_ID} = ${CURRENT_RUN_ID} ]; then
gsutil rm $LOCKFILE
else
echo "ERROR: found mismatched lockfile containing run ${EXISTING_LOCK_ID}, which does not match this run ${CURRENT_RUN_ID}." 1>&2
Expand Down Expand Up @@ -313,7 +313,7 @@ task CreateImportTsvs {
EXISTING_LOCK_ID=$(gsutil cat ${LOCKFILE}) || { echo "Error retrieving lockfile from ${LOCKFILE}" 1>&2 ; exit 1; }
CURRENT_RUN_ID="~{run_uuid}"

if [ "${EXISTING_LOCK_ID}" != "${CURRENT_RUN_ID}" ]; then
if [ ${EXISTING_LOCK_ID} != ${CURRENT_RUN_ID} ]; then
echo "ERROR: found mismatched lockfile containing run ${EXISTING_LOCK_ID}, which does not match this run ${CURRENT_RUN_ID}." 1>&2
exit 1
fi
Expand Down

0 comments on commit 7de0f32

Please sign in to comment.