From 09418fe29ed7d5829e0b251aa543b6c1b6f2090f Mon Sep 17 00:00:00 2001 From: Brent Cook Date: Thu, 6 Jul 2023 11:05:53 +0300 Subject: [PATCH] make update.sh compatible with Solaris 11 tail behavior --- update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update.sh b/update.sh index d42cd58..0c1a749 100755 --- a/update.sh +++ b/update.sh @@ -18,7 +18,7 @@ set +e tag=`git describe --exact-match --tags HEAD 2>/dev/null` is_tag=$? # adjust for 9 hour time delta between trees -release_ts=$((`git show -s --format=%ct $tag|tail -n1` + 32400)) +release_ts=$((`git show -s --format=%ct $tag|tail -1` + 32400)) commit=`git -C openbsd rev-list -n 1 --before=$release_ts $openbsd_branch` git -C openbsd fetch if [ $is_tag -eq 0 ]; then