From e46c73de74942438e079564405c5c4b0291a4aae Mon Sep 17 00:00:00 2001 From: Samruddhi Khandale Date: Fri, 16 Dec 2022 14:21:05 -0800 Subject: Git - Bug Fix: Feature fails with "ppa:false" for bionic & jammy (#339) --- src/git/install.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/git/install.sh') 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 -- cgit v1.2.3