diff --git a/.github/update_distribution.sh b/.github/update_distribution.sh index d93acea74..d5472e2d2 100755 --- a/.github/update_distribution.sh +++ b/.github/update_distribution.sh @@ -422,8 +422,8 @@ install_shadow_masks() { echo "Installing Shadow Masks ${4}" - for file in $(ls "${TMP_FOLDER}" | grep .txt) ; do - copy_file "${TMP_FOLDER}/${file}" "${TARGET_DIR}/Shadow_Masks/${file}" + for file in $(find "${TMP_FOLDER}" -iname '*.txt' -print) ; do + copy_file "${file}" "${TARGET_DIR}/Shadow_Masks/${file}" done }