Skip to content

Commit 3d140a7

Browse files
committed
Add limit to cycle.
1 parent bcd62e1 commit 3d140a7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

sql/show.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,14 @@ if grep "RUNNING" ${TEST_BASE}/TEST-0002-show.out > /dev/null ; then
3838
else
3939
echo 'NG: RUNNING status is not shown.'
4040
fi
41+
counter=0
4142
while [[ `pg_arman show -B ${BACKUP_PATH}` == *"RUNNING"* ]]
4243
do
44+
if [ $counter -lt 30 ] ; then
45+
break
46+
fi
4347
sleep 2
48+
let counter=counter+1
4449
done
4550
echo ''
4651

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy