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 Dec 4, 2020
1 parent 81a636a commit 82cca81
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 @@ -31,7 +31,7 @@ func_opt_parse_option()

_func_case_dump_descption()
{
grep '^##' "$SCRIPT_NAME"|sed 's/^##//g'
grep '^##' "$0"|sed 's/^##//g'
}

# Asks getopt to validate command line input and generate $_op_temp_script
Expand Down

0 comments on commit 82cca81

Please sign in to comment.