From 80c2979ce4e45436cc174ae3aedcaee796103933 Mon Sep 17 00:00:00 2001 From: potzplitz <127513690+potzplitz@users.noreply.github.com> Date: Sun, 3 Mar 2024 02:39:53 +0100 Subject: [PATCH] Update maven.yml --- .github/workflows/maven.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 61cc304..b4596b8 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -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