Skip to content

Commit 6a8effc

Browse files
authored
Use quoted variabled for path with spaces
If $PWD contains spaces, the command breaks without quotes. Signed-off-by: Hritik V <hey@hritik.sh>
1 parent 3c532f0 commit 6a8effc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/source/getting-started/installation/install-scancode-using-docker.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ apache-2.0.LICENSE directory. The JSON results will be in scan-result.json
6464

6565
.. code-block:: shell
6666
67-
docker run -v $PWD/:/project scancode-toolkit -clipeu --json-pp /project/scan-result.json /project/apache-2.0.LICENSE
67+
docker run -v "$PWD/:/project" scancode-toolkit -clipeu --json-pp /project/scan-result.json /project/apache-2.0.LICENSE
6868
6969
This will mount your current working from the host into ``/project`` in the container
7070
and then scan the contents. The output ``result.json`` will be written back to your

0 commit comments

Comments
 (0)