Files
2026-09-23 21:51:44 +02:00

10 lines
338 B
Bash

#!/bin/bash
# If the user mounts /opt/ComfyUI, but their directory doesn't have ComfyUI cloned,
# we're gonna copy the pre-cloned one into the mounted directory.
if [ ! -e /opt/ComfyUI/requirements.txt ]; then
echo "No ComfyUI detected, copying a built-in (pre-cloned) one..."
cp -r /opt/ComfyUI-pre-cloned/{.,}* /opt/ComfyUI/
fi