diff --git a/fish-pepper/run-java-sh/fp-files/run-java.sh b/fish-pepper/run-java-sh/fp-files/run-java.sh index 06ece14..1a2635d 100644 --- a/fish-pepper/run-java-sh/fp-files/run-java.sh +++ b/fish-pepper/run-java-sh/fp-files/run-java.sh @@ -89,7 +89,7 @@ auto_detect_jar_file() { # NB: Find both (single) JAR *or* WAR 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}"