File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -378,7 +378,7 @@ __outputResultOfJarFile() {
378
378
# Prevent grep from exiting in case of no match
379
379
# https://unix.stackexchange.com/questions/330660
380
380
grep " ${grep_opt_args[@]} " || true
381
- } | while read -r file; do
381
+ } | while IFS= read -r file; do
382
382
clearResponsiveMessage
383
383
if [ -t 1 ]; then
384
384
printf " $JAR_COLOR %s$SEP_COLOR %s$COLOR_RESET %s\n" " $jar_file " " $separator " " $file "
@@ -394,7 +394,7 @@ findInJarFiles() {
394
394
local counter=1 total_jar_count jar_file
395
395
396
396
read -r total_jar_count
397
- while read -r jar_file; do
397
+ while IFS= read -r jar_file; do
398
398
printResponsiveMessage " finding in jar($(( counter++ )) /$total_jar_count ): $jar_file "
399
399
listZipEntries " $jar_file " | __outputResultOfJarFile " $jar_file "
400
400
done
You can’t perform that action at this time.
0 commit comments