1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2025-04-16 12:18:38 +02:00

Change code like Michael.

This commit is contained in:
stalkerg 2016-03-25 16:55:26 +03:00
parent 6de1d6f053
commit 06bd035c29

View File

@ -39,13 +39,14 @@ else
echo 'NG: RUNNING status is not shown.'
fi
counter=0
while [[ `pg_arman show -B ${BACKUP_PATH}` == *"RUNNING"* ]]
do
if [ $counter -gt 30 ] ; then
break
# Wait for backup to finish properly before moving on to next test
while [[ `pg_arman show -B ${BACKUP_PATH}` == *"RUNNING"* ]]; do
if [ $counter -gt 60 ] ; then
echo "Backup took too long to finish"
exit 1
fi
sleep 2
let counter=counter+1
sleep 1
counter=$(($counter + 1))
done
echo ''