Skip to content

Conversation

@helpermethod
Copy link
Member

@marc0der
Copy link
Member

marc0der commented Feb 9, 2022

I'd like to suggest that we first roll this out to the beta hooks, then later to the stable channel when we are about to do the final release.

@helpermethod
Copy link
Member Author

I'll add a few more tests. I also need to make sure that the sed statement works on all platforms.

fi

# migrate deprecated sdkman_selfupdate_enable configuration
sed -i.bak -e 's/sdkman_selfupdate_enable/sdkman_auto_update/' "$sdkman_config_file" && rm "${sdkman_config_file}.bak"
Copy link
Member

Choose a reason for hiding this comment

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

Let's keep the .bak file around for traceability. Also, how about instead of just calling it .bak we give it a name like -2022-02-12.bak?

Copy link
Member Author

Choose a reason for hiding this comment

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

I've switched to solution which is guaranteed to also work on more esoteric systems (like Solaris).

Copy link
Member

Choose a reason for hiding this comment

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

Cool, also keep in mind that you can generate the date on the serverside because this is a play template.

@helpermethod helpermethod reopened this Feb 13, 2022
@helpermethod
Copy link
Member Author

helpermethod commented Feb 13, 2022

@marc0der Added the timestamp by defining a template variable and squashed everything together 😄.

@helpermethod helpermethod removed the request for review from eddumelendez February 14, 2022 11:52
@marc0der marc0der merged commit 117a172 into sdkman:master Feb 18, 2022
@marc0der
Copy link
Member

Thanks @helpermethod!

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