Skip to content

Commit

Permalink
fix(bash): fixes for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
matiasz8 committed Oct 30, 2024
1 parent a1f5dd3 commit 8557845
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ show_error() {
}

parse_documentation() {
documentation="$(grep "^##" "$(which "$0")")(no-trim)"
documentation="$(grep "^##" "$0")"
documentation=$(echo "$documentation" | sed -r "s/## ?//" | sed -r "s/@script.name/$(basename "$0")/g" | sed "s/@#/@/g")
documentation=${documentation%(no-trim)}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
## format.

ROOT="$(realpath "$(dirname "$0")")"
. "${ROOT}/opts.sh" || exit # Bash implementation, slower
. "${ROOT}/easyoptions.sh" || exit # Bash implementation, slower

# Boolean and parameter options
[[ -n "$some_option" ]] && echo "Option specified: --some-option"
Expand Down

0 comments on commit 8557845

Please sign in to comment.