We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent baa7030 commit 5bdee0aCopy full SHA for 5bdee0a
build/scripts/sync-native-runtime.sh
@@ -89,19 +89,22 @@ expand_source() {
89
fi
90
91
if [[ -d "${path}" ]]; then
92
- shopt -s nullglob
93
- local zips=("${path}"/*.zip)
94
- shopt -u nullglob
95
- if (( ${#zips[@]} )); then
+ local zip_list=()
+ while IFS= read -r -d '' zip_file; do
+ zip_list+=("${zip_file}")
+ done < <(find "${path}" -maxdepth 1 -type f -iname '*.zip' -print0)
96
+
97
+ if (( ${#zip_list[@]} )); then
98
local tmp
99
tmp="$(mktemp -d)"
100
CLEANUP_DIRS+=("${tmp}")
- for zip_file in "${zips[@]}"; do
101
+ for zip_file in "${zip_list[@]}"; do
102
unzip -q "${zip_file}" -d "${tmp}"
103
done
104
echo "${tmp}"
105
return 0
106
107
108
echo "${path}"
109
110
0 commit comments