File tree Expand file tree Collapse file tree 3 files changed +12
-11
lines changed Expand file tree Collapse file tree 3 files changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -449,7 +449,7 @@ Find control:
449449
450450Output control:
451451 -a, --absolute-path always print absolute path of jar file
452- -s, --seperator specify the seperator between jar file and zip entry.
452+ -s, --separator specify the separator between jar file and zip entry.
453453 default is ` ! ' .
454454
455455Miscellaneous:
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ Find control:
9898
9999Output control:
100100 -a, --absolute-path always print absolute path of jar file
101- -s, --seperator specify the seperator between jar file and zip entry.
101+ -s, --separator specify the separator between jar file and zip entry.
102102 default is \` !'.
103103
104104Miscellaneous:
@@ -124,8 +124,9 @@ while (( $# > 0 )); do
124124 extension=(" ${extension[@]} " " $2 " )
125125 shift 2
126126 ;;
127- -s|--seperator)
128- seperator=" $2 "
127+ # support the typo option --seperator for compatibility
128+ -s|--separator|--seperator)
129+ separator=" $2 "
129130 shift 2
130131 ;;
131132 -E|--extended-regexp)
@@ -175,7 +176,7 @@ extension=${extension:-jar}
175176regex_mode=${regex_mode:- -E}
176177
177178use_absolute_path=${use_absolute_path:- false}
178- seperator =" ${seperator :-! } "
179+ separator =" ${separator :-! } "
179180
180181(( "${# args[@]} " == 0 )) && usage 1 " No find file pattern!"
181182(( "${# args[@]} " > 1 )) && usage 1 " More than 1 file pattern: ${args[@]} "
@@ -243,8 +244,8 @@ findInJarFiles() {
243244 clearResponsiveMessage
244245
245246 $is_console &&
246- echo " $ec [1;35m${jar_file}${eend}${ec} [1;32m${seperator }${eend}${file} " ||
247- echo " ${jar_file}${seperator }${file} "
247+ echo " $ec [1;35m${jar_file}${eend}${ec} [1;32m${separator }${eend}${file} " ||
248+ echo " ${jar_file}${separator }${file} "
248249 done
249250
250251 clearResponsiveMessage
Original file line number Diff line number Diff line change @@ -417,17 +417,17 @@ printStackOfThreads() {
417417
418418 if [ -n " $mix_native_frames " ]; then
419419 local sed_script=" /--------------- $threadId ---------------/,/^---------------/ {
420- /--------------- $threadId ---------------/b # skip first seperator line
421- /^---------------/d # delete second seperator line
420+ /--------------- $threadId ---------------/b # skip first separator line
421+ /^---------------/d # delete second separator line
422422 p
423423 }"
424424 elif [ -n " $force " ]; then
425425 local sed_script=" /^Thread ${threadId} :/,/^$/ {
426- /^$/d; p # delete end seperator line
426+ /^$/d; p # delete end separator line
427427 }"
428428 else
429429 local sed_script=" / nid=${threadId0x} /,/^$/ {
430- /^$/d; p # delete end seperator line
430+ /^$/d; p # delete end separator line
431431 }"
432432 fi
433433 {
You can’t perform that action at this time.
0 commit comments