Skip to content

Commit

Permalink
Satisfy the linter
Browse files Browse the repository at this point in the history
  • Loading branch information
will-gant committed Apr 21, 2020
1 parent babaa94 commit dce2088
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ci/tasks/lib/wait-for-lock.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#!/bin/bash

function waitForBoshLock() {
for num in {1..60}; do
for i in {1..60}; do
bosh_locks=$(bosh locks --json | jq '.Tables[0].Rows[] | select(.resource=="concourse")')
if [[ -n "${bosh_locks}" ]]; then
echo "Concourse still has a BOSH lock, waiting another 60 seconds..."
echo "Attempt ${i}: Concourse still has a BOSH lock, waiting another 60 seconds..."
sleep 60
else
break
Expand Down

0 comments on commit dce2088

Please sign in to comment.