Skip to content

Commit 99afeb0

Browse files
authored
Merge b69097d into sapling-pr-archive-ktf
2 parents 8c6bde0 + b69097d commit 99afeb0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

publish/get-and-run.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ if [[ ! $NO_UPDATE ]]; then
5959
popd
6060
fi
6161

62-
venv=${NOMAD_TASK_DIR-$PWD}/venv
62+
venv=${NOMAD_TASK_DIR-$PWD}/venv.$$
6363
rm -rf "$venv"
6464
python3 -m venv "$venv"
6565
. "$venv/bin/activate"
@@ -139,6 +139,8 @@ function notify_on_error() {
139139
|| echo "0 $CONSECUTIVE_ERRORS" > $NOTIFICATION_STATE_FILE
140140
}
141141

142+
deactivate
143+
rm -rf "$venv"
142144
if [[ $ERR ]]; then
143145
ERR=$(echo $ERR | sed -e 's/ /, /g')
144146
echo "Something went wrong while publishing: $ERR"

0 commit comments

Comments
 (0)