aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorViktor Szakats <commit@vsz.me>2024-03-22 08:44:46 +0000
committerViktor Szakats <commit@vsz.me>2024-03-22 08:45:18 +0000
commit9646391f9212ee35c60882d6173a86a685ac9bd3 (patch)
tree1ff71cb0e1b410f318c9f6e436ab9f6b6b729051
parent24bb326b72218486fbae858bbbf4f4eb1039caeb (diff)
downloadportable-9646391f9212ee35c60882d6173a86a685ac9bd3.tar.gz
portable-9646391f9212ee35c60882d6173a86a685ac9bd3.tar.bz2
portable-9646391f9212ee35c60882d6173a86a685ac9bd3.zip
update.sh: add LIBRESSL_GIT_OPTIONS
-rwxr-xr-xupdate.sh8
1 files changed, 3 insertions, 5 deletions
diff --git a/update.sh b/update.sh
index 21a3682..c154ad7 100755
--- a/update.sh
+++ b/update.sh
@@ -6,11 +6,9 @@ openbsd_branch=`cat OPENBSD_BRANCH`
6# pull in latest upstream code 6# pull in latest upstream code
7echo "pulling upstream openbsd source" 7echo "pulling upstream openbsd source"
8if [ ! -d openbsd ]; then 8if [ ! -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
14fi 12fi
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