Skip to content

Commit d727206

Browse files
authored
docs: Fix shell var substitution in GettingStarted.md (#65803)
We're supposed to use `${platform}` for substituting this previously defined variable. Currently used `$(platform)` will try to run a command named `platform`, which doesn't make sense.
1 parent e5c3b3f commit d727206

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/HowToGuides/GettingStarted.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -471,12 +471,12 @@ platform=$([[ $(uname) == Darwin ]] && echo macosx || echo linux)
471471
472472
After setting that variable you can rebuild the compiler incrementally with this command:
473473
```sh
474-
ninja -C ../build/Ninja-RelWithDebInfoAssert/swift-$(platform)-$(uname -m) bin/swift-frontend
474+
ninja -C ../build/Ninja-RelWithDebInfoAssert/swift-${platform}-$(uname -m) bin/swift-frontend
475475
```
476476
477477
To rebuild everything that has its sources located in the `swift` repository, including the standard library:
478478
```sh
479-
ninja -C ../build/Ninja-RelWithDebInfoAssert/swift-$(platform)-$(uname -m)
479+
ninja -C ../build/Ninja-RelWithDebInfoAssert/swift-${platform}-$(uname -m)
480480
```
481481
482482
Similarly, you can rebuild other projects like Foundation or Dispatch by substituting their respective subdirectories in the commands above.

0 commit comments

Comments
 (0)