Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion reference/docs-conceptual/install/install-alpine.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
description: How to install PowerShell on Alpine Linux
ms.date: 12/15/2025
ms.date: 02/04/2026
title: Install PowerShell on Alpine Linux
---
# Install PowerShell on Alpine Linux
Expand Down Expand Up @@ -28,6 +28,7 @@ to the package depends on the version of PowerShell you want to install.
Then, in the terminal, execute the following shell commands to install PowerShell 7.4:

```sh
#!/bin/bash
Copy link

Copilot AI Feb 4, 2026

Choose a reason for hiding this comment

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

The shebang specifies bash, but Alpine Linux does not include bash by default and the script does not use any bash-specific features. Alpine uses ash (Almquist shell) by default. Consider changing this to #!/bin/sh for better compatibility with Alpine's default shell, or document that bash needs to be installed first. The other distribution scripts (Ubuntu, Debian, RHEL) correctly use #!/bin/bash because they use bash-specific features like source and bash parameter expansion.

Suggested change
#!/bin/bash
#!/bin/sh

Copilot uses AI. Check for mistakes.
# install the requirements
sudo apk add --no-cache \
ca-certificates \
Expand Down
4 changes: 3 additions & 1 deletion reference/docs-conceptual/install/install-debian.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
description: How to install PowerShell on Debian Linux
ms.date: 12/15/2025
ms.date: 02/04/2026
title: Install PowerShell on Debian
---
# Install PowerShell on Debian
Expand Down Expand Up @@ -31,6 +31,7 @@ Installing PowerShell from PMC is the preferred method of installation.
> This script only works for supported versions of Debian.

```sh
#!/bin/bash
###################################
# Prerequisites

Expand Down Expand Up @@ -81,6 +82,7 @@ The following shell script downloads and installs the current release of PowerSh
change the URL to download the version of PowerShell that you want to install.

```sh
#!/bin/bash
###################################
# Prerequisites

Expand Down
3 changes: 2 additions & 1 deletion reference/docs-conceptual/install/install-rhel.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
description: Information about installing PowerShell on Red Hat Enterprise Linux (RHEL)
ms.date: 12/15/2025
ms.date: 02/04/2026
title: Installing PowerShell on Red Hat Enterprise Linux (RHEL)
---
# Installing PowerShell on Red Hat Enterprise Linux (RHEL)
Expand Down Expand Up @@ -31,6 +31,7 @@ Installing PowerShell from PMC is the preferred method of installation.
> This script only works for supported versions of RHEL that are published to PMC.

```sh
#!/bin/bash
###################################
# Prerequisites

Expand Down
4 changes: 3 additions & 1 deletion reference/docs-conceptual/install/install-ubuntu.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
description: Information about installing PowerShell on Ubuntu
ms.date: 12/15/2025
ms.date: 02/04/2026
title: Installing PowerShell on Ubuntu
---
# Installing PowerShell on Ubuntu
Expand Down Expand Up @@ -31,6 +31,7 @@ Installing PowerShell from PMC is the preferred method of installation.
> This script only works for supported versions of Ubuntu.

```sh
#!/bin/bash
###################################
# Prerequisites

Expand Down Expand Up @@ -93,6 +94,7 @@ The following shell script downloads and installs the current preview release of
change the URL to download the version of PowerShell that you want to install.

```sh
#!/bin/bash
###################################
# Prerequisites

Expand Down