Skip to content

Commit

Permalink
✨ Enable installer to run on Azure Cloud Shell (#499)
Browse files Browse the repository at this point in the history
Resolves #498

Signed-off-by: Salim Afiune Maya <[email protected]>
  • Loading branch information
afiune authored Nov 18, 2024
1 parent 7cd182e commit c315c36
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ if [ "$DISTRIBUTION" = "Darwin" ]; then
OS="macOS"
elif [ -f /etc/debian_version ] || [ "$DISTRIBUTION" == "Debian" ] || [ "$DISTRIBUTION" == "Ubuntu" ]; then
OS="Debian"
elif [ "$AWS_EXECUTION_ENV" == "CloudShell" ]; then
OS="AWSCloudShell"
elif [ "$AWS_EXECUTION_ENV" == "CloudShell" ] || [ "$POWERSHELL_DISTRIBUTION_CHANNEL" == "CloudShell" ]; then
OS="CloudShell"
elif [ -f /etc/redhat-release ] || [ "$DISTRIBUTION" == "RedHat" ] || [ "$DISTRIBUTION" == "CentOS" ] || [ "$DISTRIBUTION" == "Amazon" ] || [ "$DISTRIBUTION" == "AlmaLinux" ] || [ "$DISTRIBUTION" == "Rocky Linux" ]; then
OS="RedHat"
elif [ -f /etc/photon-release ] || [ "$DISTRIBUTION" == "Photon" ]; then
Expand Down Expand Up @@ -761,7 +761,7 @@ elif [[ "$OS" = "Debian" ]]; then
elif [[ "$OS" = "Suse" ]]; then
configure_suse_installer

elif [[ "$OS" = "AWSCloudShell" ]]; then
elif [[ "$OS" = "CloudShell" ]]; then
configure_cloudshell_installer

else
Expand Down

0 comments on commit c315c36

Please sign in to comment.