diff options
author | Viktor Szakats <commit@vsz.me> | 2024-03-22 08:44:46 +0000 |
---|---|---|
committer | Viktor Szakats <commit@vsz.me> | 2024-03-22 08:45:18 +0000 |
commit | 9646391f9212ee35c60882d6173a86a685ac9bd3 (patch) | |
tree | 1ff71cb0e1b410f318c9f6e436ab9f6b6b729051 | |
parent | 24bb326b72218486fbae858bbbf4f4eb1039caeb (diff) | |
download | portable-9646391f9212ee35c60882d6173a86a685ac9bd3.tar.gz portable-9646391f9212ee35c60882d6173a86a685ac9bd3.tar.bz2 portable-9646391f9212ee35c60882d6173a86a685ac9bd3.zip |
update.sh: add LIBRESSL_GIT_OPTIONS
-rwxr-xr-x | update.sh | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -6,11 +6,9 @@ openbsd_branch=`cat OPENBSD_BRANCH` | |||
6 | # pull in latest upstream code | 6 | # pull in latest upstream code |
7 | echo "pulling upstream openbsd source" | 7 | echo "pulling upstream openbsd source" |
8 | if [ ! -d openbsd ]; then | 8 | if [ ! -d openbsd ]; then |
9 | if [ -z "$LIBRESSL_GIT" ]; then | 9 | LIBRESSL_GIT_OPTIONS="${LIBRESSL_GIT_OPTIONS:- --depth=8}" |
10 | git clone --depth=8 https://github.com/libressl/openbsd.git | 10 | LIBRESSL_GIT="${LIBRESSL_GIT:- https://github.com/libressl}" |
11 | else | 11 | git clone $LIBRESSL_GIT_OPTIONS $LIBRESSL_GIT/openbsd |
12 | git clone --depth=8 $LIBRESSL_GIT/openbsd | ||
13 | fi | ||
14 | fi | 12 | fi |
15 | 13 | ||
16 | # pull either the latest or if on a tag, the matching tag | 14 | # pull either the latest or if on a tag, the matching tag |