From 24f3daf9b9c1bc0a6c05a30b01a13c22e4a8fef5 Mon Sep 17 00:00:00 2001 From: xoihazard Date: Tue, 3 Jan 2023 14:55:52 +0900 Subject: [PATCH] Use ipynb variable for find command --- StableDiffusionUI_Voldemort_paperspace.ipynb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/StableDiffusionUI_Voldemort_paperspace.ipynb b/StableDiffusionUI_Voldemort_paperspace.ipynb index 5cdcb01..59cb49e 100644 --- a/StableDiffusionUI_Voldemort_paperspace.ipynb +++ b/StableDiffusionUI_Voldemort_paperspace.ipynb @@ -1215,8 +1215,7 @@ "!mkdir -p \"{datetime_str}/log\"\n", "!cd \"{repo_storage_dir}/stable-diffusion-webui/log/\" && mv * \"{export_storage_dir}/{datetime_str}/log\"\n", "!cd \"{repo_storage_dir}/stable-diffusion-webui/outputs/\" && mv * \"{export_storage_dir}/{datetime_str}\"\n", - "!TEMP=\"{export_storage_dir}/{datetime_str}\" # find command has issues with ipynb variables??\n", - "!find \"{TEMP}\" -name .ipynb_checkpoints -exec rm -rf \"{}\" +\n", + "!find \"{export_storage_dir}/{datetime_str}\" -name .ipynb_checkpoints -exec rm -rf {{}} +\n", "!7z a -t7z -m0=lzma2 -mx=9 -mfb=64 -md=32m -ms=on \"{datetime_str}.7z\" \"{export_storage_dir}/{datetime_str}/\"" ] },