mirror of
https://github.com/storytold/storyteller-ml.git
synced 2026-10-17 00:23:14 +00:00
add gitkeeps to preserve empty folders
This commit is contained in:
Executable
+21
@@ -0,0 +1,21 @@
|
||||
#!/bin/bash
|
||||
|
||||
cd ComfyUI
|
||||
|
||||
# Check if the input file exists
|
||||
if [ ! -f ../gitkeeps.txt ]; then
|
||||
echo "File 'gitkeeps.txt' not found!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Read each line from the file
|
||||
while IFS= read -r directory; do
|
||||
# Check if the line is not empty and the directory exists
|
||||
if [[ -n "$directory" && -d "$directory" ]]; then
|
||||
# Add a .gitkeep file to the directory
|
||||
touch "${directory}/.gitkeep"
|
||||
echo "Added .gitkeep to $directory"
|
||||
else
|
||||
echo "Directory '$directory' not found or line is empty."
|
||||
fi
|
||||
done < ../gitkeeps.txt
|
||||
@@ -0,0 +1,2 @@
|
||||
custom_nodes/comfy_mtb/extern/GFPGAN/
|
||||
custom_nodes/comfy_mtb/extern/frame_interpolation/
|
||||
Reference in New Issue
Block a user