aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrent Cook <busterb@gmail.com>2023-07-06 11:05:53 +0300
committerBrent Cook <busterb@gmail.com>2023-07-06 11:07:42 +0300
commit09418fe29ed7d5829e0b251aa543b6c1b6f2090f (patch)
tree4489cb617d74f526ac91dd0c0392ea2a3e90d527
parent691814aaac58c8d2cef04f6d83681ff7b43819c0 (diff)
downloadportable-09418fe29ed7d5829e0b251aa543b6c1b6f2090f.tar.gz
portable-09418fe29ed7d5829e0b251aa543b6c1b6f2090f.tar.bz2
portable-09418fe29ed7d5829e0b251aa543b6c1b6f2090f.zip
make update.sh compatible with Solaris 11 tail behavior
-rwxr-xr-xupdate.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/update.sh b/update.sh
index d42cd58..0c1a749 100755
--- a/update.sh
+++ b/update.sh
@@ -18,7 +18,7 @@ set +e
18tag=`git describe --exact-match --tags HEAD 2>/dev/null` 18tag=`git describe --exact-match --tags HEAD 2>/dev/null`
19is_tag=$? 19is_tag=$?
20# adjust for 9 hour time delta between trees 20# adjust for 9 hour time delta between trees
21release_ts=$((`git show -s --format=%ct $tag|tail -n1` + 32400)) 21release_ts=$((`git show -s --format=%ct $tag|tail -1` + 32400))
22commit=`git -C openbsd rev-list -n 1 --before=$release_ts $openbsd_branch` 22commit=`git -C openbsd rev-list -n 1 --before=$release_ts $openbsd_branch`
23git -C openbsd fetch 23git -C openbsd fetch
24if [ $is_tag -eq 0 ]; then 24if [ $is_tag -eq 0 ]; then