-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Closed
Labels
Needs-TriageThe issue is new and needs to be triaged by a work group.The issue is new and needs to be triaged by a work group.
Description
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest released version
- Search the existing issues.
- Refer to the FAQ.
- Refer to Differences between Windows PowerShell 5.1 and PowerShell.
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
localhost:~ # bash <(curl -s https://raw.githubusercontent.com/PowerShell/PowerShell/master/tools/install-powershell.sh) suse
Get-PowerShell MASTER Installer Version 1.2.0
Installs PowerShell and Optional The Development Environment
Original script is at: https://raw.githubusercontent.com/PowerShell/PowerShell/master/tools\install-powershell.psh
Arguments used: suse
Operating System Details:
OS: linux
DIST:
DistroBasedOn:
PSUEDONAME:
REV:
KERNEL: 5.3.18-57-default
MACH: x86_64
OSSTR:
Sorry, your operating system is based on and is not supported by PowerShell or this installer at this time.Visuals
No response
Metadata
Metadata
Assignees
Labels
Needs-TriageThe issue is new and needs to be triaged by a work group.The issue is new and needs to be triaged by a work group.