File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -231,13 +231,15 @@ download_and_extract ()
231
231
MONGODB_DOWNLOAD_URL=$1
232
232
EXTRACT=$2
233
233
234
- curl --retry 5 $MONGODB_DOWNLOAD_URL --silent --max-time 120 --fail --output mongodb-binaries.tgz
234
+ if ! test -d mongodb -a -x mongodb/bin/mongod; then
235
+ curl --retry 5 $MONGODB_DOWNLOAD_URL --silent --max-time 120 --fail --output mongodb-binaries.tgz
235
236
236
- $EXTRACT mongodb-binaries.tgz
237
+ $EXTRACT mongodb-binaries.tgz
237
238
238
- rm -rf mongodb* tgz mongodb/
239
- mv mongodb* mongodb
240
- chmod -R +x mongodb
241
- find . -name vcredist_x64.exe -exec {} /install /quiet \;
239
+ rm -rf mongodb* tgz mongodb/
240
+ mv mongodb* mongodb
241
+ chmod -R +x mongodb
242
+ find . -name vcredist_x64.exe -exec {} /install /quiet \;
243
+ fi
242
244
./mongodb/bin/mongod --version
243
245
}
You can’t perform that action at this time.
0 commit comments