Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the install script verify the checksum automatically #104

Merged
merged 3 commits into from Jun 5, 2018

Conversation

pior
Copy link
Member

@pior pior commented May 28, 2018

Why

The install script should not ask the user to compare the checksums, it should let shasum do that.

How

Download the checksum file at the right place and run shasum -c, which would warn and fail the whole script in case of a mismatch.

BLOCKED until the next release because we need to the new shasum files introduced by #103

@pior pior requested a review from mlhamel as a code owner May 28, 2018 01:05
@@ -1,13 +1,12 @@
#!/usr/bin/env bash
set -eu

VERSION="v0.3.0"
VERSION="v0.4.0"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This version doesn't exist but we need the path fix from #103, which will only be available in the next release.

install.sh Outdated

[[ -e "${TMPFILE}" ]] && unlink "${TMPFILE}"
rm -rf "${TMPDIR}"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we just leave the tmpdir to avoid doing a rm -rf ?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that's quite common to keep those tempdir and anyway something should clean this up at one point automatically no?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i don't like using -rf in a script

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed

@pior pior changed the title Make the install script verify the checksum automatically BLOCKED - Make the install script verify the checksum automatically May 30, 2018
@pior pior changed the title BLOCKED - Make the install script verify the checksum automatically Make the install script verify the checksum automatically Jun 5, 2018
@pior pior merged commit 166d8d0 into master Jun 5, 2018
@pior pior deleted the update-install-script branch June 5, 2018 01:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants