Skip to content

Commit

Permalink
getting rid of weird charactergit add * (pleasegit add *)
Browse files Browse the repository at this point in the history
  • Loading branch information
kallie-b committed Jun 21, 2017
1 parent b9c0d8e commit b4f2332
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -361,13 +361,13 @@ try
{
Write-Host "WARNING: This script cannot be used on hosts that are running in swarm mode, and this machine is currently in an active swarm state." -ForegroundColor Yellow
Write-Host "Would you like to exit swarm mode now to continue running this script?"
$Readhost = Read-Host " ( y / n ) " 
Switch ($ReadHost) 
$Readhost = Read-Host " ( y / n ) "
Switch ($ReadHost)
{
Y {Write-host "Exiting swarm mode now..."; docker swarm leave --force; sleep 10;}
N {Write-Host "Cannot run script when host is in active swarm state. Exiting."exit;}
Default {Write-Host "Cannot run script when host is in active swarm state. Exiting."exit;}
} 
}
$dockerInfo = docker info --format '{{json .}}' | ConvertFrom-Json
}

Expand Down

0 comments on commit b4f2332

Please sign in to comment.