Skip to content

Commit

Permalink
fix run-java.sh broken auto_detect_jar_file to really find WAR (#79) (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
vorburger authored and rhuss committed Feb 14, 2019
1 parent 95a6618 commit 74dd935
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fish-pepper/run-java-sh/fp-files/run-java.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ auto_detect_jar_file() {
# NB: Find both (single) JAR *or* WAR <https://github.com/fabric8io-images/run-java-sh/issues/79>
local nr_jars="$(ls 2>/dev/null | grep -e '.*\.jar$' -e '.*\.war$' | grep -v '^original-' | wc -l | awk '{print $1}')"
if [ "${nr_jars}" = 1 ]; then
ls 2>/dev/null *.jar *.war | grep -v '^original-'
ls 2>/dev/null | grep -e '.*\.jar$' -e '.*\.war$' | grep -v '^original-'
exit 0
fi
cd "${old_dir}"
Expand Down

0 comments on commit 74dd935

Please sign in to comment.