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
Powershell installation throws error on SLES15 OS. #16959
Comments
Please use our template for requesting new OS support. |
This script currently supports anything above Sles12. I removed the bad code that I mentioned above "elif [ -f /etc/SuSE-release ] ; then" and I was able to install powershell for sles15. This is not new OS support. It is just some old code related to Sles12 needs to be removed. |
hi @yogeshbirla : |
@kasini3000 I would like to submit PR for this change. Can you please let me know the process. |
I have the code ready. It is not allowing me to send Pull request. My git account is with email birlayogesh@gmail.com. I am getting: |
Yeah, you can't push directly to this repository. What you want to do is create a new fork in your own Github account by clicking the Once that's done you can go to the Pull Requests page and GitHub normally will detect you've pushed a new branch to your fork and prompt you to open a pull request for that branch. |
PR submitted. #16984 |
The above PR #16984 has potentially fixed the issue. Please re-open it is still not working. Install script is not officially supported by the PowerShell team and is a community driven effort. |
Prerequisites
Steps to reproduce
Get the latest SLES15SP5 image. Try to install powershell using installpsh-suse.sh or install-powershell.sh script. It throws error saying OS is not supported.
Script supports SLES15 but there is bad code in there which prevents the execution. Below code for checking OS has been deprecated after SLES12 so it works for SLES12 but not for SLES15. We need to check for /etc/os-release to get the correct OS version.
elif [ -f /etc/SuSE-release ] ; then
Expected behavior
installpsh-suse.sh or install-powershell.sh should install powershell on sles15.
Actual behavior
installpsh-suse.sh or install-powershell.sh throws error on sles15 because of deprecated code being used.
Error details
No response
Environment data
Visuals
No response
The text was updated successfully, but these errors were encountered: