Skip to content

Commit

Permalink
opt.sh: extract test description from $0, not from $SCRIPT_NAME
Browse files Browse the repository at this point in the history
The SCRIPT_NAME indirection is not required and confusing.

Signed-off-by: Marc Herbert <[email protected]>
  • Loading branch information
marc-hb committed Jul 30, 2024
1 parent 048f488 commit d4fcc87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion case-lib/opt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func_opt_parse_option()
# removing the leading '##' or '## ' from documentation.
_dump_case_description()
{
grep '^##' "$SCRIPT_NAME" | sed 's/^##//g' | sed 's/^ //g'
grep '^##' "$0" | sed 's/^##//g' | sed 's/^ //g'
}

# This function helps to fill below four variables
Expand Down

0 comments on commit d4fcc87

Please sign in to comment.