1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2025-02-07 14:18:17 +02:00

Fix tests on Solaris.

This commit is contained in:
stalkerg 2016-06-14 14:34:03 +03:00
parent f01d5755aa
commit 5ee1aafb89

View File

@ -92,5 +92,11 @@ EOF
function get_time_last_backup()
{
pg_arman -B ${BACKUP_PATH} show | tail -n +4 | head -n 1 | awk '{print($1, $2)}'
name_os=`uname`
if [ "$name_os" == "SunOS" ]
then
pg_arman -B ${BACKUP_PATH} show | gtail -n +4 | head -n 1 | awk '{print($1, $2)}'
else
pg_arman -B ${BACKUP_PATH} show | tail -n +4 | head -n 1 | awk '{print($1, $2)}'
fi
}