Skip to content

Commit

Permalink
Fix installation script
Browse files Browse the repository at this point in the history
  • Loading branch information
Sung Won Cho committed Oct 20, 2018
1 parent 4f42b39 commit cdb0c97
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ install_dnote() {
exit 1
fi

binary=dnote_doctor
binary=dnote-doctor
owner=dnote
repo=doctor
github_download="https://github.com/${owner}/${repo}/releases/download"
Expand All @@ -159,8 +159,8 @@ install_dnote() {
# remove the preceding 'v'
version="${version#v}"

checksum=${binary}_${version}_checksums.txt
filename=${binary}_${version}_${os}_${arch}
checksum=${binary}-${version}-checksums.txt
filename=${binary}-${version}-${os}-${arch}
tarball="${filename}.tar.gz"
binary_url="${github_download}/v${version}/${tarball}"
checksum_url="${github_download}/v${version}/${checksum}"
Expand Down
4 changes: 2 additions & 2 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ build() {
get_buildname() {
os=$1

echo "dnote_doctor_${version}_${os}_amd64"
echo "dnote-doctor-${version}-${os}-amd64"
}

calc_checksum() {
Expand All @@ -72,7 +72,7 @@ calc_checksum() {

buildname=$(get_buildname "$os")
mv dnote-doctor "$buildname"
shasum -a 256 "$buildname" >> "$TMP/dnote_doctor_${version}_checksums.txt"
shasum -a 256 "$buildname" >> "$TMP/dnote-doctor-${version}-checksums.txt"
mv "$buildname" dnote-doctor

popd
Expand Down

0 comments on commit cdb0c97

Please sign in to comment.