File size: 739 Bytes
c2fcbe5
 
577cc55
 
 
03bb9a1
c2fcbe5
03bb9a1
c2fcbe5
0b77113
 
03bb9a1
 
0b77113
 
 
 
 
 
03bb9a1
 
 
 
577cc55
 
c2fcbe5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash

# Print the current working directory for debugging
echo "Current working directory: $(pwd)"

# 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

# List contents of the current directory and ComfyUI directory
echo "Contents of the current directory:"
ls -la
echo "Contents of the ComfyUI directory:"
ls -la ComfyUI

# 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
else
  echo "ComfyUI repository cloned successfully."
fi