Skip to content

Commit

Permalink
faster/smarter.
Browse files Browse the repository at this point in the history
  • Loading branch information
mihxil committed Nov 16, 2024
1 parent df18da5 commit 5a9c573
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/kaniko-maven.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ package_wars() {
else

echo "No Dockerfile and no OS_APPLICATIONS variable found"
OS_APPLICATIONS=$(find . -name '*.war' -exec sh -c 'f=$(dirname $1); (cd $f/..; basename $PWD) ;' shell {} \; | tr '\n' ',' | sed 's/,$//')
OS_APPLICATIONS=$(find . -maxdepth 3 -mindepth 3 -name "*${PROJECT_VERSION}.war" -exec sh -c 'f=$(dirname $1); (cd $f/..; basename $PWD) ;' shell {} \; | tr '\n' ',' | sed 's/,$//')
if [ ! -z "$OS_APPLICATIONS" ] ; then
echo "Guessed OS_APPLICATIONS=$OS_APPLICATIONS"
package_wars
else
echo "Could not guess either"
echo "Could not guess either for ${PROJECT_VERSION}"
fi
fi

Expand Down

0 comments on commit 5a9c573

Please sign in to comment.