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 1111# @online-doc https://github.com/oldratlee/useful-scripts/blob/master/docs/java.md#beer-find-in-jars
1212# @author Jerry Lee (oldratlee at gmail dot com)
1313
14- readonly PROG=` basename $0 `
14+ readonly PROG=" ` basename " $0 " ` "
1515
1616usage () {
1717 [ -n " $1 " -a " $1 " != 0 ] && local out=/dev/stderr || local out=/dev/stdout
@@ -183,7 +183,7 @@ clearResponsiveMessage() {
183183# find logic
184184# ###############################################################################
185185
186- readonly jar_files=" $( find " ${dirs[@]} " -iname ' *.jar' ) "
186+ readonly jar_files=" $( find " ${dirs[@]} " -iname ' *.jar' -type f ) "
187187readonly total_count=" $( echo " $jar_files " | wc -l) "
188188[ -z " $jar_files " ] && {
189189 echo " No jar found!" 1>&2
You can’t perform that action at this time.
0 commit comments