Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf3438a8

Browse files
committed
Change code like Michael.
1 parent8622049 commitf3438a8

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

‎contrib/pg_arman/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-
sleep2
48-
letcounter=counter+1
48+
sleep1
49+
counter=$(($counter+1))
4950
done
5051
echo''
5152

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp