diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/git/devcontainer-feature.json | 2 | ||||
-rwxr-xr-x | src/git/install.sh | 10 |
2 files changed, 10 insertions, 2 deletions
diff --git a/src/git/devcontainer-feature.json b/src/git/devcontainer-feature.json index a8ea798..bc57675 100644 --- a/src/git/devcontainer-feature.json +++ b/src/git/devcontainer-feature.json @@ -1,6 +1,6 @@ { "id": "git", - "version": "1.1.0", + "version": "1.1.1", "name": "Git (from source)", "documentationURL": "https://github.com/devcontainers/features/tree/main/src/git", "description": "Install an up-to-date version of Git, built from source as needed. Useful for when you want the latest and greatest features. Auto-detects latest stable version and installs needed dependencies.", diff --git a/src/git/install.sh b/src/git/install.sh index 7ffa01e..2463cc9 100755 --- a/src/git/install.sh +++ b/src/git/install.sh @@ -147,7 +147,15 @@ if [ "$(echo "${GIT_VERSION}" | grep -o '\.' | wc -l)" != "2" ]; then fi fi -check_packages libpcre2-posix2 libpcre2-dev +check_packages libpcre2-dev + +if [ "${VERSION_CODENAME}" = "focal" ]; then + check_packages libpcre2-posix2 +elif [ "${VERSION_CODENAME}" = "bionic" ]; then + check_packages libpcre2-posix0 +else + check_packages libpcre2-posix3 +fi echo "Downloading source for ${GIT_VERSION}..." curl -sL https://github.com/git/git/archive/v${GIT_VERSION}.tar.gz | tar -xzC /tmp 2>&1 |