Skip to content

Commit 5ee1aaf

Browse files
committed
Fix tests on Solaris.
1 parent f01d575 commit 5ee1aaf

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
function get_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)