Skip to content

Commit

Permalink
Preserve backslash (#352)
Browse files Browse the repository at this point in the history
Adding this argument to the read will preserve the `\` for the oras_copy
documentation. Another PR contains the documentation updates. The change
results in this:

![Screenshot 2024-06-23 at 1 32
53 PM](https://github.com/oras-project/oras-www/assets/104113/7e7a2882-acb0-4ded-8b88-d163c5419b14)

Signed-off-by: Terry Howe <[email protected]>
  • Loading branch information
Terry Howe authored Jun 25, 2024
1 parent 5d2cbe2 commit 1f797aa
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tools/parse.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ STATE=Introduction
EXAMPLES=""
PREFIX="Example - "
>${EXAMPLES_FILE}
cat ${TEMPFILE} | while read LINE
cat ${TEMPFILE} | while read -r LINE
do
[[ "${LINE}" == "" ]] && continue
if [[ "${LINE}" == Aliases* ]]
Expand Down
3 changes: 2 additions & 1 deletion versioned_docs/version-1.1/commands/oras_cp.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ oras cp -r localhost:5000/net-monitor:v1 localhost:6000/net-monitor-copy:v1
Copy an artifact and referrers using specific methods for the Referrers API:
```bash
oras cp -r --from-distribution-spec v1.1-referrers-api --to-distribution-spec v1.1-referrers-tag localhost:5000/net-monitor:v1 localhost:6000/net-monitor-copy:v1
oras cp -r --from-distribution-spec v1.1-referrers-api --to-distribution-spec v1.1-referrers-tag \
localhost:5000/net-monitor:v1 localhost:6000/net-monitor-copy:v1
```
Copy certain platform of an artifact:
Expand Down
3 changes: 2 additions & 1 deletion versioned_docs/version-1.2/commands/oras_cp.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ oras cp -r localhost:5000/net-monitor:v1 localhost:6000/net-monitor-copy:v1
Copy an artifact and referrers using specific methods for the Referrers API:
```bash
oras cp -r --from-distribution-spec v1.1-referrers-api --to-distribution-spec v1.1-referrers-tag localhost:5000/net-monitor:v1 localhost:6000/net-monitor-copy:v1
oras cp -r --from-distribution-spec v1.1-referrers-api --to-distribution-spec v1.1-referrers-tag \
localhost:5000/net-monitor:v1 localhost:6000/net-monitor-copy:v1
```
Copy certain platform of an artifact:
Expand Down

0 comments on commit 1f797aa

Please sign in to comment.