diff --git a/.github/workflows/serverlist-validate-game-icons.sh b/.github/workflows/serverlist-validate-game-icons.sh index 81d34ff84..3a54c012c 100755 --- a/.github/workflows/serverlist-validate-game-icons.sh +++ b/.github/workflows/serverlist-validate-game-icons.sh @@ -16,7 +16,7 @@ done echo "" echo "Checking if an unexpected gameicon exists" -for gameicon in gameicons/*; do +for gameicon in $(ls -1 gameicons); do # check if $gameicon is in serverlist.csv if ! grep -q "${gameicon%-icon.png}" serverlist.csv; then echo "ERROR: gameicon ${gameicon} is not in serverlist.csv"