From 3d11be44bcd2c1b31c52f6e1077f77056e7a2aef Mon Sep 17 00:00:00 2001 From: Ruben Garcia Date: Thu, 26 Mar 2020 13:31:27 +0100 Subject: [PATCH] Fix alias line (otherwise, the pwd command is only executed once, and running swagger on a different directory will fail. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 22098f9..e0420a3 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ a standard `http.Handler` Using the docker container, add the following alias to a `~/.bashrc` or similar ```bash -alias swagger="docker run --rm -e GOPATH=/go -v ${HOME}:${HOME} -w $(pwd) -u $(id -u):$(id -g) stratoscale/swagger:v1.0.9" +alias swagger="docker run --rm -e GOPATH=/go -v ${HOME}:${HOME} -w "'$(pwd)'" -u $(id -u):$(id -g) stratoscale/swagger:v1.0.9" ``` Then, use the `swagger` command: