Browse Source

Re-consistentize $PWD usage

Tianon Gravi 10 years ago
parent
commit
28746f04da
6 changed files with 6 additions and 6 deletions
  1. 1 1
      iojs/README.md
  2. 1 1
      iojs/content.md
  3. 1 1
      julia/README.md
  4. 1 1
      julia/content.md
  5. 1 1
      logstash/README.md
  6. 1 1
      logstash/content.md

+ 1 - 1
iojs/README.md

@@ -35,7 +35,7 @@ Then simply run:
 
 To run a single script, you can mount it in a volume under `/usr/src/app`. From the root of your application directory (assuming your script is named `index.js`):
 
-	$ docker run -v ${PWD}:/usr/src/app -w /usr/src/app -it --rm iojs iojs index.js
+	$ docker run -v "$PWD":/usr/src/app -w /usr/src/app -it --rm iojs iojs index.js
 
 # Image Variants
 

+ 1 - 1
iojs/content.md

@@ -27,4 +27,4 @@ Then simply run:
 
 To run a single script, you can mount it in a volume under `/usr/src/app`. From the root of your application directory (assuming your script is named `index.js`):
 
-	$ docker run -v ${PWD}:/usr/src/app -w /usr/src/app -it --rm iojs iojs index.js
+	$ docker run -v "$PWD":/usr/src/app -w /usr/src/app -it --rm iojs iojs index.js

+ 1 - 1
julia/README.md

@@ -22,7 +22,7 @@ Starting the Julia REPL is as easy as the following:
 
 ## Run Julia script from your local directory inside container
 
-	docker run -it --rm -v $(pwd):/usr/myapp -w /usr/myapp julia julia script.jl arg1 arg2
+	docker run -it --rm -v "$PWD":/usr/myapp -w /usr/myapp julia julia script.jl arg1 arg2
 
 # License
 

+ 1 - 1
julia/content.md

@@ -16,4 +16,4 @@ Starting the Julia REPL is as easy as the following:
 
 ## Run Julia script from your local directory inside container
 
-	docker run -it --rm -v $(pwd):/usr/myapp -w /usr/myapp julia julia script.jl arg1 arg2
+	docker run -it --rm -v "$PWD":/usr/myapp -w /usr/myapp julia julia script.jl arg1 arg2

+ 1 - 1
logstash/README.md

@@ -24,7 +24,7 @@ If you need to run logstash with configuration provided on the commandline, you
 
 If you need to run logstash with a configuration file, `logstash.conf`, that's located in your current directory, you can use the logstash image as follows:
 
-	docker run -it --rm -v $(pwd):/config-dir logstash logstash -f /config-dir/logstash.conf
+	docker run -it --rm -v "$PWD":/config-dir logstash logstash -f /config-dir/logstash.conf
 
 # License
 

+ 1 - 1
logstash/content.md

@@ -18,4 +18,4 @@ If you need to run logstash with configuration provided on the commandline, you
 
 If you need to run logstash with a configuration file, `logstash.conf`, that's located in your current directory, you can use the logstash image as follows:
 
-	docker run -it --rm -v $(pwd):/config-dir logstash logstash -f /config-dir/logstash.conf
+	docker run -it --rm -v "$PWD":/config-dir logstash logstash -f /config-dir/logstash.conf