Update install-powershell.sh to support azure-linux (#23955)

This commit is contained in:
Subham Bose 2024-07-02 01:22:07 +05:30 committed by GitHub
parent dbb17afcb2
commit 4a0decbc3c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)