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

Commit5ee1aaf

Browse files
committed
Fix tests on Solaris.
1 parentf01d575 commit5ee1aaf

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

‎sql/common.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,5 +92,11 @@ EOF
9292

9393
functionget_time_last_backup()
9494
{
95-
pg_arman -B${BACKUP_PATH} show| tail -n +4| head -n 1| awk'{print($1, $2)}'
95+
name_os=`uname`
96+
if ["$name_os"=="SunOS" ]
97+
then
98+
pg_arman -B${BACKUP_PATH} show| gtail -n +4| head -n 1| awk'{print($1, $2)}'
99+
else
100+
pg_arman -B${BACKUP_PATH} show| tail -n +4| head -n 1| awk'{print($1, $2)}'
101+
fi
96102
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp