Skip to content

Commit f8819df

Browse files
authored
Update install-imgcrypt to allow change install repo
Add repo env similar to other install script Signed-off-by: Jing Xu <[email protected]>
1 parent a457995 commit f8819df

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

script/setup/install-imgcrypt

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,10 @@ set -eu -o pipefail
2323
script_dir="$(cd -- "$(dirname -- "$0")" > /dev/null 2>&1; pwd -P)"
2424

2525
: "${IMGCRYPT_VERSION:=$(cat "${script_dir}/imgcrypt-version")}"
26+
: "${IMGCRYPT_REPO:=https://github.com/containerd/imgcrypt.git}" # Default repo
2627

2728
TMPROOT=$(mktemp -d)
28-
git clone https://github.com/containerd/imgcrypt.git "${TMPROOT}"/imgcrypt
29+
git clone "${IMGCRYPT_REPO}" "${TMPROOT}"/imgcrypt
2930
pushd "${TMPROOT}"/imgcrypt
3031
git checkout "${IMGCRYPT_VERSION}"
3132
make

0 commit comments

Comments
 (0)