mirror of
https://github.com/actions/runner-images.git
synced 2025-12-13 20:56:47 +00:00
* PowerShell and Docker Pester tests * no pester module * import pester * invoke docker with sudo * remove native test * add fix for az 1.0.0 module * revert powershellget installation * revert flag Force * add $ProgressPreference = "SilentlyContinue"
16 lines
522 B
Bash
16 lines
522 B
Bash
#!/bin/bash -e
|
|
################################################################################
|
|
## File: powershellcore.sh
|
|
## Desc: Installs powershellcore
|
|
################################################################################
|
|
|
|
# Install Powershell
|
|
apt-get install -y powershell
|
|
|
|
# Run tests to determine that the software installed as expected
|
|
echo "Testing to make sure that script performed as expected, and basic scenarios work"
|
|
if ! command -v pwsh; then
|
|
echo "pwsh was not installed"
|
|
exit 1
|
|
fi
|