Skip to content

Commit 6e28107

Browse files
authored
fix(ci): rimraf mongosh install dir on ssh host (#609)
Apparently, spawn hosts are not particularly isolated either, and can be re-used: [2021/02/03 12:00:30.604] + cd '/cygdrive/c/Program Files/' [2021/02/03 12:00:30.604] + mkdir mongosh [2021/02/03 12:00:30.618] Starting script on SSH host [2021/02/03 12:00:30.618] mkdir: cannot create directory 'mongosh': File exists [2021/02/03 12:00:30.618] Command failed: error waiting on process 'ee956461-7225-4eae-9dda-d9bb8237be7b': exit status 1 [2021/02/03 12:00:30.619] Task completed - FAILURE.
1 parent 7d12117 commit 6e28107

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.evergreen/test-package-win32.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/usr/bin/env bash
22
curl -sSfL "$ARTIFACT_URL" > mongosh.zip
33
export ARTIFACT_PATH="$PWD/mongosh.zip"
4-
(cd /cygdrive/c/Program\ Files/ && mkdir mongosh && cd mongosh && unzip "$ARTIFACT_PATH" && chmod -v +x bin/*)
4+
(cd /cygdrive/c/Program\ Files/ && rm -rf mongosh && mkdir mongosh && cd mongosh && unzip "$ARTIFACT_PATH" && chmod -v +x bin/*)
55
export PATH="/cygdrive/c/Program Files/mongosh/bin:$PATH"
66
mongosh --smokeTests
7+
(cd /cygdrive/c/Program\ Files/ && rm -rf mongosh)

0 commit comments

Comments
 (0)