Skip to content

Commit 82cca81

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 81a636a commit 82cca81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

case-lib/opt.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ func_opt_parse_option()
3131

3232
_func_case_dump_descption()
3333
{
34-
grep '^##' "$SCRIPT_NAME"|sed 's/^##//g'
34+
grep '^##' "$0"|sed 's/^##//g'
3535
}
3636

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

0 commit comments

Comments
 (0)