@@ -158,7 +158,7 @@ header "Fetching Swift"
158
158
mkdir -p swift-project
159
159
pushd swift-project > /dev/null
160
160
161
- git clone ${github} apple/swift.git
161
+ [[ -d swift ]] || git clone ${github} apple/swift.git
162
162
cd swift
163
163
164
164
# Get its dependencies
@@ -178,47 +178,47 @@ popd >/dev/null
178
178
# Fetch Musl (can't clone using ssh)
179
179
header " Fetching Musl"
180
180
181
- git clone https://git.musl-libc.org/git/musl
181
+ [[ -d musl ]] || git clone https://git.musl-libc.org/git/musl
182
182
pushd musl > /dev/null 2>&1
183
183
git checkout v${MUSL_VERSION}
184
184
popd > /dev/null 2>&1
185
185
186
186
# Fetch libxml2
187
187
header " Fetching libxml2"
188
188
189
- git clone ${github} GNOME/libxml2.git
189
+ [[ -d libxml2 ]] || git clone ${github} GNOME/libxml2.git
190
190
pushd libxml2 > /dev/null 2>&1
191
191
git checkout v${LIBXML2_VERSION}
192
192
popd > /dev/null 2>&1
193
193
194
194
# Fetch curl
195
195
header " Fetching curl"
196
196
197
- git clone ${github} curl/curl.git
197
+ [[ -d curl ]] || git clone ${github} curl/curl.git
198
198
pushd curl > /dev/null 2>&1
199
199
git checkout curl-$( echo ${CURL_VERSION} | tr ' .' ' _' )
200
200
popd > /dev/null 2>&1
201
201
202
202
# Fetch BoringSSL (also can't clone using ssh)
203
203
header " Fetching BoringSSL"
204
204
205
- git clone https://boringssl.googlesource.com/boringssl
205
+ [[ -d boringssl ]] || git clone https://boringssl.googlesource.com/boringssl
206
206
pushd boringssl > /dev/null 2>&1
207
207
git checkout ${BORINGSSL_VERSION}
208
208
popd > /dev/null 2>&1
209
209
210
210
# Fetch ICU
211
211
header " Fetching ICU"
212
212
213
- git clone ${github} unicode-org/icu.git
213
+ [[ -d icu ]] || git clone ${github} unicode-org/icu.git
214
214
pushd icu > /dev/null 2>&1
215
215
git checkout ${ICU_VERSION}
216
216
popd > /dev/null 2>&1
217
217
218
218
# Fetch zlib
219
219
header " Fetching zlib"
220
220
221
- git clone ${github} madler/zlib.git
221
+ [[ -d zlib ]] || git clone ${github} madler/zlib.git
222
222
pushd zlib > /dev/null 2>&1
223
223
git checkout v${ZLIB_VERSION}
224
224
popd > /dev/null 2>&1
0 commit comments