Skip to content

Commit dee4143

Browse files
committed
improve format of find-in-jars
1 parent 400ecc3 commit dee4143

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

find-in-jars

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -196,14 +196,15 @@ counter=1
196196
while read jar_file; do
197197
printResponsiveMessage "finding in jar($((counter++))/$total_count): $jar_file"
198198

199-
$command_for_list_zip "${jar_file}" | grep $regex_mode $ignore_case_option $grep_color_option -- "$pattern" | while read file; do
200-
clearResponsiveMessage
199+
$command_for_list_zip "${jar_file}" |
200+
grep $regex_mode $ignore_case_option $grep_color_option -- "$pattern" |
201+
while read file; do
202+
clearResponsiveMessage
201203

202-
$is_console &&
203-
echo "$ec[1;31m${jar_file}$eend$ec[1;32m"\!"$eend${file}" ||
204-
echo "${jar_file}"\!"${file}"
205-
done
204+
$is_console &&
205+
echo "$ec[1;31m${jar_file}$eend$ec[1;32m"\!"$eend${file}" ||
206+
echo "${jar_file}"\!"${file}"
207+
done
206208

207209
clearResponsiveMessage
208-
209210
done < <(echo "$jar_files")

0 commit comments

Comments
 (0)