Skip to content

Commit

Permalink
correct dynamic source command in documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
georglauterbach committed Jun 9, 2024
1 parent 62c8340 commit ab92e40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ SCRIPT='some script'
This example assumes the script `some_script.sh` is executed (or sourced) from the directory it lives in (i.e., `your_repository`). To source `libbash` independently of the invocation location, for example in `some_dir/some_other_script.sh`, you may use this more elaborate call to `source`:

``` BASH
source "$(realpath "$(dirname "${BASH_SOURCE[0]}")/../libbash/load" 'errors' 'log'
source "$(realpath "$(dirname "${BASH_SOURCE[0]}")/../libbash/load")" 'errors' 'log'
SCRIPT='some other script'
```

Expand Down

0 comments on commit ab92e40

Please sign in to comment.