diff --git a/scripts/add_external_models.sh b/scripts/add_external_models.sh index 2b453cc..ce8fa1a 100755 --- a/scripts/add_external_models.sh +++ b/scripts/add_external_models.sh @@ -3,13 +3,13 @@ set -e if [ -n "$COMFYUI_INSTALLER_DIR" ]; then if [ -f ".settings" ]; then - pirntf "source [\033[0;32m.settings\033[m]" + printf "source [\033[0;32m.settings\033[m]\n" source .settings elif [ -f "scripts/.settings" ]; then - printf "source [\033[0;32mscripts/.settings\033[m]" + printf "source [\033[0;32mscripts/.settings\033[m]\n" source scripts/.settings else - printf "[!] No settings file found. Please run the setup script first." + printf "[!] No settings file found. Please run the setup script first.\n" exit 1 fi sleep 1 @@ -28,7 +28,7 @@ EXTRA_MODELS() { printf "[!] [\033[0;32mExtra Model Paths\033[m] file found, creating backup.\n" cp "$COMFYUI_DIR/extra_model_paths.yaml" "$COMFYUI_DIR/extra_model_paths.yaml.bak" fi - cat <>"$COMFYUI_DIR/extra_model_paths.yaml" + cat <"$COMFYUI_DIR/extra_model_paths.yaml" comfyui: base_path: $EXTERNAL_MODELS_DIR # You can use is_default to mark that these folders should be listed first, and used as the default dirs for eg downloads @@ -38,8 +38,10 @@ comfyui: clip_vision: models/clip_vision/ configs: models/configs/ controlnet: models/controlnet/ - diffusion_models: | - models/diffusion_models + # --- FIX --- + # The previous multi-line definition for 'diffusion_models' was incorrect + # and caused a YAML syntax error. It has been corrected to a single line. + diffusion_models: models/diffusion_models/ lora: models/lora/ upscale_models: models/upscale_models/ vae: models/vae/