1 echo "Install PowerShell 6.2.0"
3 if [ ! -d /opt
/powershell
]; then
6 wget https
://github.com
/PowerShell
/PowerShell
/releases
/download
/v6.2
.0/powershell
-6.2
.0-linux-arm32.
tar.gz
8 tar -xvf .
/powershell
-6.2
.0-linux-arm32.
tar.gz
-C /opt
/powershell
10 echo "PowerShell is now at /opt/powershell/pswsh"
11 echo "Remember to update your path."
15 ln -s /opt
/powershell
/pwsh
/usr
/bin
/pwsh
16 ls /usr
/bin
/pwsh
-alis
17 chmod 755 -R /opt
/powershell
/pwsh
18 rm /opt
/powershell
/DELETE_ME_TO_DISABLE_CONSOLEHOST_TELEMETRY