From 4005bc1e211b8fe3ea10cdc4acfdb0d7738e1028 Mon Sep 17 00:00:00 2001 From: Jillian Rowe Date: Wed, 25 Jan 2023 11:27:05 +0300 Subject: [PATCH] fix --- jupyter_rstudio_singularity/cli.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jupyter_rstudio_singularity/cli.py b/jupyter_rstudio_singularity/cli.py index 4d6aace..cad5c46 100644 --- a/jupyter_rstudio_singularity/cli.py +++ b/jupyter_rstudio_singularity/cli.py @@ -201,8 +201,9 @@ def sanity_check_singularity_image(remote_image: str, image: str): os.makedirs(image_dir, exist_ok=True) if not os.path.exists(image): logger.info("Local image doesn't exist. Pulling...") + command = f"cd {image_dir} && singularity pull {str(remote_image)}" return shell_run_command( - command=f"cd {image_dir} && singularity pull {remote_image}", + command=command, return_all=True, ) else: