Skip to content

Commit d4fcc87

Browse files
committed
opt.sh: extract test description from $0, not from $SCRIPT_NAME
The SCRIPT_NAME indirection is not required and confusing. Signed-off-by: Marc Herbert <marc.herbert@intel.com>
1 parent 048f488 commit d4fcc87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

case-lib/opt.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func_opt_parse_option()
3434
# removing the leading '##' or '## ' from documentation.
3535
_dump_case_description()
3636
{
37-
grep '^##' "$SCRIPT_NAME" | sed 's/^##//g' | sed 's/^ //g'
37+
grep '^##' "$0" | sed 's/^##//g' | sed 's/^ //g'
3838
}
3939

4040
# This function helps to fill below four variables

0 commit comments

Comments
 (0)