From 4a0decbc3ccbb069b769371d1215fb6e1424298d Mon Sep 17 00:00:00 2001 From: Subham Bose <103451415+bosesubham2011@users.noreply.github.com> Date: Tue, 2 Jul 2024 01:22:07 +0530 Subject: [PATCH] Update `install-powershell.sh` to support azure-linux (#23955) --- tools/install-powershell.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/install-powershell.sh b/tools/install-powershell.sh index dbe9206c46..128f566448 100755 --- a/tools/install-powershell.sh +++ b/tools/install-powershell.sh @@ -103,6 +103,10 @@ install(){ DistroBasedOn='mandrake' PSUEDONAME=$( (sed s/.*\(// | sed s/\)//) < /etc/mandrake-release ) REV=$( (sed s/.*release\ // | sed s/\ .*//) < /etc/mandrake-release ) + elif [ -f /etc/azurelinux-release ] ; then + DistroBasedOn='mariner' + PSUEDONAME=$( (sed s/.*\(// | sed s/\)//) < /etc/azurelinux-release ) + REV=$( (sed s/.*release\ // | sed s/\ .*//) < /etc/azurelinux-release ) elif [ -f /etc/debian_version ] ; then DistroBasedOn='debian' DIST=$(. /etc/os-release && echo $NAME)