Merge pull request #980 from hairyhenderson/eval-quotes

Adding quotes to the usage hint on `docker-machine env`
This commit is contained in:
Evan Hazlett 2015-04-09 10:14:46 -04:00
commit e506ecb904
1 changed files with 2 additions and 2 deletions

View File

@ -750,9 +750,9 @@ func generateUsageHint(machineName string, userShell string) string {
}
default:
if machineName != "" {
cmd = fmt.Sprintf("eval $(docker-machine env %s)", machineName)
cmd = fmt.Sprintf("eval \"$(docker-machine env %s)\"", machineName)
} else {
cmd = "eval $(docker-machine env)"
cmd = "eval \"$(docker-machine env)\""
}
}