diff options
author | Thiago Farina <tfarina@chromium.org> | 2016-03-21 13:32:30 +0000 |
---|---|---|
committer | Damien Martin-Guillerez <dmarting@google.com> | 2016-03-21 18:39:09 +0000 |
commit | 2445af0575340bcb3efa4bf882278234a18da13c (patch) | |
tree | 16b0a17575a4d54903b692dee3de750cad1ac99d /site | |
parent | 066c6c1b35d6e68775c1eb843627470b8115ce9a (diff) |
docs: add missing '-p' flag to mkdir command in the example
When passing a path that has some parent directories to mkdir command
you also need to pass '-p' flag to tell it to make the parent directories
as needed.
Otherwise you will get an error like this:
mkdir: cannot create directory `src/main/java/com/example/cmdline': No
such file or directory
This patch fixes this documentation as it was suggested at
https://groups.google.com/d/msgid/bazel-discuss/e3d20e6e-9b6f-410f-b80c-67afa9ebc9f9%40googlegroups.com?utm_medium=email&utm_source=footer
--
Change-Id: I3075ac66bb7cf42f97139246471e2120838da1e6
Reviewed-on: https://bazel-review.googlesource.com/#/c/3102/
MOS_MIGRATED_REVID=117708676
Diffstat (limited to 'site')
-rw-r--r-- | site/docs/getting-started.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/site/docs/getting-started.md b/site/docs/getting-started.md index 613793c2b5..1d029216d4 100644 --- a/site/docs/getting-started.md +++ b/site/docs/getting-started.md @@ -152,7 +152,7 @@ can refer to targets defined in other BUILD files using the syntax file: {% highlight bash %} -$ mkdir src/main/java/com/example/cmdline +$ mkdir -p src/main/java/com/example/cmdline $ cat > src/main/java/com/example/cmdline/Runner.java <<EOF package com.example.cmdline; |