We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cb0e006 commit 9c89e48Copy full SHA for 9c89e48
build-mono-docker.ps1
@@ -1,4 +1,4 @@
1
-if ($null -eq (Get-Command "docker.exe" -ErrorAction SilentlyContinue)) {
+trap [Management.Automation.CommandNotFoundException] {
2
Write-Error 'Docker cannot be found. Make sure it is installed and added to the path.'
3
Start-Process -FilePath 'https://docs.docker.com/docker-for-windows/install/'
4
continue;
0 commit comments