File tree 2 files changed +10
-2
lines changed
2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,9 @@ package() {
7
7
fi
8
8
9
9
cp -f target/$TARGET /release/$BIN_NAME bin/$BIN_NAME_TAG
10
+ cd bin || return 1
11
+ sha256sum " $BIN_NAME_TAG " | tee " $BIN_NAME_TAG .sha256"
12
+ cd -
10
13
}
11
14
12
15
release_tag () {
Original file line number Diff line number Diff line change @@ -11,18 +11,23 @@ name=languageclient
11
11
12
12
try_curl () {
13
13
command -v curl > /dev/null && \
14
- curl --fail --location " $1 " --output bin/$name
14
+ curl --fail --location " $1 " --output bin/$name && \
15
+ curl --fail --location " $1 .sha256" --output bin/$name .sha256
15
16
}
16
17
17
18
try_wget () {
18
19
command -v wget > /dev/null && \
19
- wget --output-document=bin/$name " $1 "
20
+ wget --output-document=bin/$name " $1 " && \
21
+ wget --output-document=bin/$name .sha256 " $1 "
20
22
}
21
23
22
24
download () {
23
25
echo " Downloading bin/${name} ..."
24
26
url=https://github.com/autozimu/LanguageClient-neovim/releases/download/$version /${1}
25
27
if (try_curl " $url " || try_wget " $url " ); then
28
+ cd bin || return 1
29
+ sha256sum -c " $name .sha256" || return 1
30
+ cd -
26
31
chmod a+x bin/$name
27
32
return
28
33
else
You can’t perform that action at this time.
0 commit comments