Skip to content

Commit d114d9f

Browse files
committed
Add versioning example to installation instructions in README file.
1 parent f6923e5 commit d114d9f

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ Inline `source`-ed code.
55
## Installation
66

77
The advised installation method is using the [`bpkg` package manager][bpkg], as
8-
this will allow versioning to be used.
8+
this will allow versioning to be used:
9+
10+
```sh
11+
bpkg install potherca-bash/[email protected]
12+
```
913

1014
Alternatively, the latest version of this project's main script can be
1115
downloaded directly:

src/function.replace_line_with_file_content.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ replace_line_with_file_content() {
1616
if [[ ${REPLY:0:2} != '#!' ]]; then
1717
# Ignore shebang line
1818
echo "${REPLY}"
19+
#@TODO: Add logic to allow certain lines to only be included once
20+
# For instance to filter out `set -o errexit -o errtrace -o nounset -o pipefail`
21+
# or recurring `source` calls
1922
#@TODO: For now we do not recurse into sourced files
2023
#elif [[ ${REPLY} =~ ^\s*source ]]; then
2124
# sLine=$(replace_line_with_file_content "${REPLY}")

0 commit comments

Comments
 (0)