mirror of
https://github.com/PowerShell/PowerShell.git
synced 2024-11-23 01:34:19 +08:00
Update install-powershell.sh
to support azure-linux (#23955)
This commit is contained in:
parent
dbb17afcb2
commit
4a0decbc3c
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user