This repository was archived by the owner on Nov 30, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -140,6 +140,7 @@ install_using_apt() {
140140
141141 if ! (apt-get update && apt-get install -yq git-lfs${version_suffix} ); then
142142 rm -f /etc/apt/sources.list.d/git-lfs.list
143+ echo " Could not fetch git-lfs from apt"
143144 return 1
144145 fi
145146
@@ -152,15 +153,28 @@ install_using_github() {
152153 cd /tmp/git-lfs
153154 find_version_from_git_tags GIT_LFS_VERSION " https://github.com/git-lfs/git-lfs"
154155 git_lfs_filename=" git-lfs-linux-${architecture} -v${GIT_LFS_VERSION} .tar.gz"
156+ echo " Looking for release artfact: ${git_lfs_filename} "
155157 curl -sSL -o " ${git_lfs_filename} " " https://github.com/git-lfs/git-lfs/releases/download/v${GIT_LFS_VERSION} /${git_lfs_filename} "
156158 # Verify file
157159 curl -sSL -o " sha256sums.asc" " https://github.com/git-lfs/git-lfs/releases/download/v${GIT_LFS_VERSION} /sha256sums.asc"
158160 receive_gpg_keys GIT_LFS_CHECKSUM_GPG_KEYS
159161 gpg -q --decrypt " sha256sums.asc" > sha256sums
160162 sha256sum --ignore-missing -c " sha256sums"
161163 # Extract and install
164+ echo " Validated release artifact integrity."
165+ echo " Starting to extract..."
162166 tar xf " ${git_lfs_filename} " -C .
163- ./install.sh
167+ echo " Installing..."
168+ if [ -f " ./install.sh" ]; then
169+ ./install.sh
170+ else
171+ # Starting around v3.2.0, the release
172+ # artifact file structure changed slightly
173+ enclosed_folder=" git-lfs-${GIT_LFS_VERSION} "
174+ cd ${enclosed_folder}
175+ ./install.sh
176+ cd ../
177+ fi
164178 rm -rf /tmp/git-lfs /tmp/tmp-gnupg
165179}
166180
Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ if [ "${DISTRO}" = "debian" ]; then
109109 run_script python " 3.10 /opt/python /opt/python-tools ${USERNAME} false false"
110110 run_script awscli
111111 run_script azcli
112- run_script fish " false ${USERNAME} "
112+ # run_script fish "false ${USERNAME}"
113113 run_script git-from-src " latest true"
114114 run_script git-lfs " " " 2.13.3"
115115 run_script github
You can’t perform that action at this time.
0 commit comments