We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 262e92a + ed8c99b commit 80b93d6Copy full SHA for 80b93d6
1 file changed
conf/tools/install.sh
@@ -39,7 +39,9 @@ ensure_python3_venv() {
39
if [ -d "$venv_path" ] && [ -x "$venv_path/bin/python3.11" ]; then
40
return 0
41
fi
42
- rm -rf "$venv_path" && python3.11 -m venv "$venv_path" || exit 1
+ # retry once: rm -rf may fail if zstack_service_exporter is regenerating .pyc concurrently
43
+ rm -rf "$venv_path" || rm -rf "$venv_path" || exit 1
44
+ python3.11 -m venv "$venv_path" || exit 1
45
}
46
47
0 commit comments