mirror of https://github.com/docker/docs.git
Merge pull request #980 from hairyhenderson/eval-quotes
Adding quotes to the usage hint on `docker-machine env`
This commit is contained in:
commit
e506ecb904
|
@ -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)\""
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue