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() {
140
140
141
141
if ! (apt-get update && apt-get install -yq git-lfs${version_suffix} ); then
142
142
rm -f /etc/apt/sources.list.d/git-lfs.list
143
+ echo " Could not fetch git-lfs from apt"
143
144
return 1
144
145
fi
145
146
@@ -152,15 +153,28 @@ install_using_github() {
152
153
cd /tmp/git-lfs
153
154
find_version_from_git_tags GIT_LFS_VERSION " https://github.com/git-lfs/git-lfs"
154
155
git_lfs_filename=" git-lfs-linux-${architecture} -v${GIT_LFS_VERSION} .tar.gz"
156
+ echo " Looking for release artfact: ${git_lfs_filename} "
155
157
curl -sSL -o " ${git_lfs_filename} " " https://github.com/git-lfs/git-lfs/releases/download/v${GIT_LFS_VERSION} /${git_lfs_filename} "
156
158
# Verify file
157
159
curl -sSL -o " sha256sums.asc" " https://github.com/git-lfs/git-lfs/releases/download/v${GIT_LFS_VERSION} /sha256sums.asc"
158
160
receive_gpg_keys GIT_LFS_CHECKSUM_GPG_KEYS
159
161
gpg -q --decrypt " sha256sums.asc" > sha256sums
160
162
sha256sum --ignore-missing -c " sha256sums"
161
163
# Extract and install
164
+ echo " Validated release artifact integrity."
165
+ echo " Starting to extract..."
162
166
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
164
178
rm -rf /tmp/git-lfs /tmp/tmp-gnupg
165
179
}
166
180
Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ if [ "${DISTRO}" = "debian" ]; then
109
109
run_script python " 3.10 /opt/python /opt/python-tools ${USERNAME} false false"
110
110
run_script awscli
111
111
run_script azcli
112
- run_script fish " false ${USERNAME} "
112
+ # run_script fish "false ${USERNAME}"
113
113
run_script git-from-src " latest true"
114
114
run_script git-lfs " " " 2.13.3"
115
115
run_script github
You can’t perform that action at this time.
0 commit comments