Update maven.yml

This commit is contained in:
potzplitz 2024-03-03 02:39:53 +01:00 committed by GitHub
parent 4341e70d04
commit 80c2979ce4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -27,7 +27,7 @@ jobs:
- name: Check if JAR files exist
run: |
if [ ! -d "target" ] || [ -z "$(ls -A target/*.jar)" ]; then
if ! [ -d "target" ] || ! [ "$(ls -A target/*.jar 2>/dev/null)" ]; then
echo "No JAR files found in target directory or target directory does not exist."
exit 1
fi