Fix apt-get update fail causes apt-get install to not be executed

This commit is contained in:
allegroai 2022-03-30 20:10:57 +03:00
parent c3590a53a8
commit c87da3a079

View File

@ -3641,7 +3641,7 @@ class Worker(ServiceCommandSection):
"{python_single_digit}.$i -m pip --version && " +
"export LOCAL_PYTHON=$(which {python_single_digit}.$i) && break ; done",
"[ ! -z $LOCAL_PYTHON ] || export CLEARML_APT_INSTALL=\"$CLEARML_APT_INSTALL {python_single_digit}-pip\"", # noqa
"[ -z \"$CLEARML_APT_INSTALL\" ] || (apt-get update && apt-get install -y $CLEARML_APT_INSTALL)",
"[ -z \"$CLEARML_APT_INSTALL\" ] || (apt-get update ; apt-get install -y $CLEARML_APT_INSTALL)",
]
if preprocess_bash_script: