File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,11 @@ Inline `source`-ed code.
55## Installation
66
77The 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/inline-source@v0.1.0
12+ ```
913
1014Alternatively, the latest version of this project's main script can be
1115downloaded directly:
Original file line number Diff line number Diff 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}")
You can’t perform that action at this time.
0 commit comments