diff options
author | Brent Cook <busterb@gmail.com> | 2023-07-06 11:05:53 +0300 |
---|---|---|
committer | Brent Cook <busterb@gmail.com> | 2023-07-06 11:07:42 +0300 |
commit | 09418fe29ed7d5829e0b251aa543b6c1b6f2090f (patch) | |
tree | 4489cb617d74f526ac91dd0c0392ea2a3e90d527 | |
parent | 691814aaac58c8d2cef04f6d83681ff7b43819c0 (diff) | |
download | portable-09418fe29ed7d5829e0b251aa543b6c1b6f2090f.tar.gz portable-09418fe29ed7d5829e0b251aa543b6c1b6f2090f.tar.bz2 portable-09418fe29ed7d5829e0b251aa543b6c1b6f2090f.zip |
make update.sh compatible with Solaris 11 tail behavior
-rwxr-xr-x | update.sh | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -18,7 +18,7 @@ set +e | |||
18 | tag=`git describe --exact-match --tags HEAD 2>/dev/null` | 18 | tag=`git describe --exact-match --tags HEAD 2>/dev/null` |
19 | is_tag=$? | 19 | is_tag=$? |
20 | # adjust for 9 hour time delta between trees | 20 | # adjust for 9 hour time delta between trees |
21 | release_ts=$((`git show -s --format=%ct $tag|tail -n1` + 32400)) | 21 | release_ts=$((`git show -s --format=%ct $tag|tail -1` + 32400)) |
22 | commit=`git -C openbsd rev-list -n 1 --before=$release_ts $openbsd_branch` | 22 | commit=`git -C openbsd rev-list -n 1 --before=$release_ts $openbsd_branch` |
23 | git -C openbsd fetch | 23 | git -C openbsd fetch |
24 | if [ $is_tag -eq 0 ]; then | 24 | if [ $is_tag -eq 0 ]; then |