From 4fed76205fa6215052ff6d83d5ddb6fbdcfaf5dc Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Tue, 3 Dec 2013 21:21:40 +0100 Subject: only sleep for 10secs if we really need to sleep more --- bin/build-deb-package | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/build-deb-package b/bin/build-deb-package index 1e9a0bb..2c435c4 100755 --- a/bin/build-deb-package +++ b/bin/build-deb-package @@ -317,8 +317,10 @@ wait_for_lock() { while [ -f $LOCK_FILE ]; do pid=$(head -n1 $LOCK_FILE) if ! ps $pid 1>/dev/null; then rm -f $LOCK_FILE - else echo "PROJECT directory is locked, sleeping for 10 secs..."; fi - sleep 10 + else + echo "PROJECT directory is locked, sleeping for 10 secs..." + sleep 10 + fi done } -- cgit v1.2.3