Skip to content

Conversation

mehrdadn
Copy link
Contributor

Not required per se, but version numbers aren't necessary at all (and shouldn't need to be sprinkled across multiple scripts).

cd redis-3.2.3
if [ ! -f redis/src/redis-server ]; then
redis_vname="redis-3.2.3"
if [ ! -f redis/utils/whatisdoing.sh ]; then
Copy link
Collaborator

Choose a reason for hiding this comment

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

What is this for?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Haha sorry, I should've explained. It's one of the last files in the tarball, so it's to check the tarball has been extracted fully (and not terminated halfway). The whole PR is because I ran the script multiple times and it didn't really seem idempotent (it'd name the second tarball to <name>.1 or something) and didn't seem to run properly so I just removed the temporary copy altogether (and stripped the outer directory directly).

Copy link
Collaborator

Choose a reason for hiding this comment

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

Ok that makes sense.

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.

2 participants