diff --git a/script/build-macos.sh b/script/build-macos.sh index c6f1ef0a..8ea7edc6 100755 --- a/script/build-macos.sh +++ b/script/build-macos.sh @@ -76,7 +76,7 @@ echo "-- Building git at $SOURCE to $DESTINATION" MACOSX_DEPLOYMENT_TARGET=$MACOSX_BUILD_VERSION ) -if [[ "$GIT_LFS_VERSION" ]]; then +if [[ "${NO_GIT_LFS:-}" != "1" && "$GIT_LFS_VERSION" ]]; then echo "-- Bundling Git LFS" GIT_LFS_FILE=git-lfs.tar.gz GIT_LFS_URL="https://github.com/git-lfs/git-lfs/releases/download/v${GIT_LFS_VERSION}/${GIT_LFS_FILENAME}" @@ -102,14 +102,14 @@ if [[ "$GIT_LFS_VERSION" ]]; then exit 1 fi else - echo "-- Skipped bundling Git LFS (set GIT_LFS_VERSION to include it in the bundle)" + echo "-- Skipped bundling Git LFS" fi GCM_VERSION="$(jq --raw-output '.["git-credential-manager"].version[1:]' dependencies.json)" GCM_CHECKSUM="$(jq --raw-output ".\"git-credential-manager\".files[] | select(.arch == \"$GOARCH\" and .platform == \"darwin\") | .checksum" dependencies.json)" GCM_URL="$(jq --raw-output ".\"git-credential-manager\".files[] | select(.arch == \"$GOARCH\" and .platform == \"darwin\") | .url" dependencies.json)" -if [[ "$GCM_VERSION" && "$GCM_URL" ]]; then +if [[ "${NO_GCM:-}" != "1" && "$GCM_VERSION" && "$GCM_URL" ]]; then echo "-- Bundling GCM" GCM_FILE=git-credential-manager.tar.gz echo "-- Downloading from $GCM_URL" @@ -135,7 +135,7 @@ else if [ -z "$GCM_URL" ]; then echo "-- No download URL for GCM on macOS/$GOARCH, skipping bundling" else - echo "-- Skipped bundling GCM (set GCM_VERSION to include it in the bundle)" + echo "-- Skipped bundling GCM" fi fi diff --git a/script/build-ubuntu.sh b/script/build-ubuntu.sh index b57009c5..07e34dc1 100755 --- a/script/build-ubuntu.sh +++ b/script/build-ubuntu.sh @@ -81,7 +81,7 @@ DESTDIR="$DESTINATION" \ make strip install ) -if [[ "$GIT_LFS_VERSION" ]]; then +if [[ "${NO_GIT_LFS:-}" != "1" && "$GIT_LFS_VERSION" ]]; then echo "-- Bundling Git LFS" GIT_LFS_FILE=git-lfs.tar.gz GIT_LFS_URL="https://github.com/git-lfs/git-lfs/releases/download/v${GIT_LFS_VERSION}/${GIT_LFS_FILENAME}" @@ -107,10 +107,10 @@ if [[ "$GIT_LFS_VERSION" ]]; then exit 1 fi else - echo "-- Skipped bundling Git LFS (set GIT_LFS_VERSION to include it in the bundle)" + echo "-- Skipped bundling Git LFS" fi -if [[ "$GCM_VERSION" && "$GCM_URL" ]]; then +if [[ "${NO_GCM:-}" != "1" && "$GCM_VERSION" && "$GCM_URL" ]]; then echo "-- Bundling GCM" GCM_FILE=git-credential-manager.tar.gz echo "-- Downloading from $GCM_URL" @@ -135,7 +135,7 @@ else if [ -z "$GCM_URL" ]; then echo "-- No download URL for GCM on Linux/$DEPENDENCY_ARCH, skipping bundling" else - echo "-- Skipped bundling GCM (set GCM_VERSION to include it in the bundle)" + echo "-- Skipped bundling GCM" fi fi diff --git a/script/build-win32.sh b/script/build-win32.sh index 482101c5..8801d9fe 100755 --- a/script/build-win32.sh +++ b/script/build-win32.sh @@ -57,7 +57,7 @@ else fi -if [[ "$GIT_LFS_VERSION" ]]; then +if [[ "${NO_GIT_LFS:-}" != "1" && "$GIT_LFS_VERSION" ]]; then # download Git LFS, verify its the right contents, and unpack it echo "-- Bundling Git LFS" GIT_LFS_FILE=git-lfs.zip @@ -84,7 +84,7 @@ if [[ "$GIT_LFS_VERSION" ]]; then exit 1 fi else - echo "-- Skipped bundling Git LFS (set GIT_LFS_VERSION to include it in the bundle)" + echo "-- Skipped bundling Git LFS" fi if [[ -f "$DESTINATION/etc/gitconfig" ]]; then