From c87da3a0799d4673da34d8767dc70ed864a34c23 Mon Sep 17 00:00:00 2001 From: allegroai <> Date: Wed, 30 Mar 2022 20:10:57 +0300 Subject: [PATCH] Fix apt-get update fail causes apt-get install to not be executed --- clearml_agent/commands/worker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clearml_agent/commands/worker.py b/clearml_agent/commands/worker.py index d3d5a9b..a052296 100644 --- a/clearml_agent/commands/worker.py +++ b/clearml_agent/commands/worker.py @@ -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: