Skip to content

Commit 5badeb8

Browse files
committed
Drop the {} syntax in update example
This makes the commands easier to copy into non-bash shells, like fish, without breaking bash in the process.
1 parent 35f6c85 commit 5badeb8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/update_cmake_version.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Available CMake archives can be found at https://cmake.org/files.
1818
``X.Y.Z`` CMake version available for download. For example::
1919

2020
$ release=3.14.4
21-
$ python scripts/update_cmake_version.py ${release}
21+
$ python scripts/update_cmake_version.py $release
2222
Collecting URLs and SHA256s from 'https://api.github.com/repos/Kitware/CMake/releases/tags/v3.14.4'
2323
[...]
2424
Collecting URLs and SHA256s from 'https://api.github.com/repos/Kitware/CMake/releases/tags/v3.14.4' - done
@@ -35,9 +35,9 @@ Available CMake archives can be found at https://cmake.org/files.
3535
For example::
3636

3737
release=3.14.4
38-
git checkout -b update-to-cmake-${release}
38+
git checkout -b update-to-cmake-$release
3939
git add CMakeUrls.cmake docs/index.rst README.rst tests/test_distribution.py
40-
git commit -m "Update to CMake ${release}"
40+
git commit -m "Update to CMake $release"
4141

4242
4. Push the topic and create a `Pull Request`.
4343

0 commit comments

Comments
 (0)