Skip to content

Commit 1509f42

Browse files
committed
Checksum directly without changing dirs
1 parent a320a12 commit 1509f42

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

ci/before_deploy.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ package() {
77
fi
88

99
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+
sha256sum "bin/$BIN_NAME_TAG" | tee "bin/$BIN_NAME_TAG.sha256"
1311
}
1412

1513
release_tag() {

install.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@ download() {
2525
echo "Downloading bin/${name}..."
2626
url=https://github.com/autozimu/LanguageClient-neovim/releases/download/$version/${1}
2727
if (try_curl "$url" || try_wget "$url"); then
28-
cd bin || return 1
29-
sha256sum -c "$name.sha256" || return 1
30-
cd -
28+
sha256sum -c "bin/$name.sha256" || return 1
3129
chmod a+x bin/$name
3230
return
3331
else

0 commit comments

Comments
 (0)