-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Download.sh that autodetects current release from github #3535
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
Download.sh that autodetects current release from github #3535
Conversation
Autodetects current release from github using pure bash (sed)
|
@DarwinJS, |
|
|
||
| case "$VERSION_ID" in | ||
| 14.04) | ||
| package=powershell_6.0.0-alpha.18-1ubuntu1.14.04.1_amd64.deb |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where installation via package manager is available, can we switch to using that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're on the same page! I am thinking that when I add the repos I should make the initial install request specifying the version as the version that comes down in the version tag on git. That way if there happens to a sync issue where a newer than the latest "official" release is hanging around, this code only installs the official release tagged as latest on git?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it should just install the latest version from the repo. Eventually, we will have a non-pre-release version, and I think then we have a decision to make, but currently, if it's in the repo, it's ready.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suits me - easier to code ;)
TravisEz13
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The build is failing. It should be fixed
|
Another question - is the "Centos" release really only good for Centos - or also Rhel? Right now the logic limits it to Centos. |
|
CentOS, my understanding is that it should work on the same version of Rhel. |
|
I've made a proposal here: #3547 |
|
@TravisEz13 - is every .sh that is uploaded tested against every distro - or is there a way to specify which ones run on which test targets? |
|
Which .sh file are we talking about? I doubt there is a way to specify which distro it is tested on. that would have to be written. |
|
What do you want to do with this PR? |
|
I would like to merge it, however, I don't have a way to test the OSX code (that now uses brew.) Would be especially helpful to test on a pristine system. |
|
If you fix the merge conflicts, I can probably help you test it. |
|
@TravisEz13 - this is superceded by #3608 |
|
Closing because this is superseded |
This version detects the currently available version on github.
Details: