Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Powershell installation throws error on SLES15 OS. #16959

Copy link
Copy link
@yogeshbirla

Description

@yogeshbirla
Issue body actions

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

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

No one assigned

    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.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.