Skip to content
Snippets Groups Projects
Commit 9e7ce529 authored by Julien Leduc's avatar Julien Leduc
Browse files

use a break and not a continue that loops forever...

parent 342dfc9f
No related branches found
No related tags found
No related merge requests found
......@@ -35,7 +35,7 @@ while test 0 != $(grep -c copied$ ${STATUS_FILE}); do
if test ${SECONDS_PASSED} == ${WAIT_FOR_ARCHIVED_FILE_TIMEOUT}; then
echo "Timed out after ${WAIT_FOR_ARCHIVED_FILE_TIMEOUT} seconds waiting for file to be archived to tape"
continue
break
fi
echo "$(grep -c archived$ ${STATUS_FILE})/${NB_FILES} archived"
......@@ -84,7 +84,7 @@ while test 0 != $(grep -c tapeonly$ ${STATUS_FILE}); do
if test ${SECONDS_PASSED} == ${WAIT_FOR_RETRIEVED_FILE_TIMEOUT}; then
echo "Timed out after ${WAIT_FOR_ARCHIVED_FILE_TIMEOUT} seconds waiting for file to be retrieved tape"
continue
break
fi
echo "$(grep -c retrieved$ ${STATUS_FILE})/${NB_FILES} retrieved"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment