Skip to content

Commit 40aee9e

Browse files
committed
Check if variable is not empty
1 parent 76dec11 commit 40aee9e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/reusable-code-quality.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ jobs:
7878
EXCLUDES=("--exclude vendor" "--exclude .git")
7979
8080
for i in "${ADDITIONAL_EXCLUDES[@]}"; do
81-
EXCLUDES+=("--exclude $i")
81+
if [ ! -z i ]; then
82+
EXCLUDES+=("--exclude $i")
83+
fi
8284
done
8385
8486
echo "Providing excludes: ${EXCLUDES[*]}"

0 commit comments

Comments
 (0)