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

Commitc2f6219

Browse files
committed
Try to support Solaris.
1 parent12554f7 commitc2f6219

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

‎contrib/pg_arman/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+
set name_os =`uname`
96+
if ["$name_os"-n"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