# Clone the ComfyUI repository if it doesn't exist | |
if [ ! -d "ComfyUI" ]; then | |
echo "Cloning the ComfyUI repository..." | |
git clone -b totoro4 https://github.com/camenduru/ComfyUI.git | |
else | |
echo "ComfyUI repository already exists." | |
fi | |
# Verify the clone | |
if [ ! -d "ComfyUI/totoro_extras" ]; then | |
echo "Error: Failed to clone the ComfyUI repository or 'totoro_extras' directory is missing." | |
exit 1 | |
fi | |