Use ipynb variable for find command

This commit is contained in:
xoihazard 2023-01-03 14:55:52 +09:00
parent 3847099e0c
commit 24f3daf9b9
1 changed files with 1 additions and 2 deletions

View File

@ -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}/\""
]
},