Skip to content

Commit 06bd035

Browse files
committed
Change code like Michael.
1 parent 6de1d6f commit 06bd035

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

sql/show.sh

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,14 @@ else
3939
echo 'NG: RUNNING status is not shown.'
4040
fi
4141
counter=0
42-
while [[ `pg_arman show -B ${BACKUP_PATH}` == *"RUNNING"* ]]
43-
do
44-
if [ $counter -gt 30 ] ; then
45-
break
42+
# Wait for backup to finish properly before moving on to next test
43+
while [[ `pg_arman show -B ${BACKUP_PATH}` == *"RUNNING"* ]]; do
44+
if [ $counter -gt 60 ] ; then
45+
echo "Backup took too long to finish"
46+
exit 1
4647
fi
47-
sleep 2
48-
let counter=counter+1
48+
sleep 1
49+
counter=$(($counter + 1))
4950
done
5051
echo ''
5152

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