Skip to content

Commit

Permalink
fix typo: seperator -> seperator
Browse files Browse the repository at this point in the history
  • Loading branch information
oldratlee committed May 7, 2019
1 parent 9a727ba commit 62ac01f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion docs/java.md
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ Find control:
Output control:
-a, --absolute-path always print absolute path of jar file
-s, --seperator specify the seperator between jar file and zip entry.
-s, --separator specify the separator between jar file and zip entry.
default is `!'.
Miscellaneous:
Expand Down
13 changes: 7 additions & 6 deletions find-in-jars
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ Find control:
Output control:
-a, --absolute-path always print absolute path of jar file
-s, --seperator specify the seperator between jar file and zip entry.
-s, --separator specify the separator between jar file and zip entry.
default is \`!'.
Miscellaneous:
Expand All @@ -124,8 +124,9 @@ while (( $# > 0 )); do
extension=("${extension[@]}" "$2")
shift 2
;;
-s|--seperator)
seperator="$2"
# support the typo option --seperator for compatibility
-s|--separator|--seperator)
separator="$2"
shift 2
;;
-E|--extended-regexp)
Expand Down Expand Up @@ -175,7 +176,7 @@ extension=${extension:-jar}
regex_mode=${regex_mode:--E}

use_absolute_path=${use_absolute_path:-false}
seperator="${seperator:-!}"
separator="${separator:-!}"

(( "${#args[@]}" == 0 )) && usage 1 "No find file pattern!"
(( "${#args[@]}" > 1 )) && usage 1 "More than 1 file pattern: ${args[@]}"
Expand Down Expand Up @@ -243,8 +244,8 @@ findInJarFiles() {
clearResponsiveMessage

$is_console &&
echo "$ec[1;35m${jar_file}${eend}${ec}[1;32m${seperator}${eend}${file}" ||
echo "${jar_file}${seperator}${file}"
echo "$ec[1;35m${jar_file}${eend}${ec}[1;32m${separator}${eend}${file}" ||
echo "${jar_file}${separator}${file}"
done

clearResponsiveMessage
Expand Down
8 changes: 4 additions & 4 deletions show-busy-java-threads
Original file line number Diff line number Diff line change
Expand Up @@ -417,17 +417,17 @@ printStackOfThreads() {

if [ -n "$mix_native_frames" ]; then
local sed_script="/--------------- $threadId ---------------/,/^---------------/ {
/--------------- $threadId ---------------/b # skip first seperator line
/^---------------/d # delete second seperator line
/--------------- $threadId ---------------/b # skip first separator line
/^---------------/d # delete second separator line
p
}"
elif [ -n "$force" ]; then
local sed_script="/^Thread ${threadId}:/,/^$/ {
/^$/d; p # delete end seperator line
/^$/d; p # delete end separator line
}"
else
local sed_script="/ nid=${threadId0x} /,/^$/ {
/^$/d; p # delete end seperator line
/^$/d; p # delete end separator line
}"
fi
{
Expand Down

0 comments on commit 62ac01f

Please sign in to comment.