fix path for neatcli
This commit is contained in:
@@ -4,7 +4,7 @@ set -euo pipefail
|
|||||||
SOURCE="$HOME/ComfyUI/output"
|
SOURCE="$HOME/ComfyUI/output"
|
||||||
SHARE_DIR="/mini.nas/miniShare1/Pictures"
|
SHARE_DIR="/mini.nas/miniShare1/Pictures"
|
||||||
STATE_FILE="$HOME/.local/state/comfyui-sync.state"
|
STATE_FILE="$HOME/.local/state/comfyui-sync.state"
|
||||||
NEATCLI="$(command -v neatcli || true)"
|
NEATCLI="$(command -v /home/linuxbrew/.linuxbrew/bin/neatcli || true)"
|
||||||
RENAME_SCRIPT="$HOME/git/schmeeve-toolz/rename-ai-snaps"
|
RENAME_SCRIPT="$HOME/git/schmeeve-toolz/rename-ai-snaps"
|
||||||
ORGANIZE_SCRIPT="$HOME/git/schmeeve-toolz/organize-images"
|
ORGANIZE_SCRIPT="$HOME/git/schmeeve-toolz/organize-images"
|
||||||
|
|
||||||
@@ -38,9 +38,9 @@ if [ "$new_count" -gt 0 ]; then
|
|||||||
while IFS= read -r f; do
|
while IFS= read -r f; do
|
||||||
[ -z "$f" ] && continue
|
[ -z "$f" ] && continue
|
||||||
cp "$SOURCE/$f" "$SHARE_DIR/"
|
cp "$SOURCE/$f" "$SHARE_DIR/"
|
||||||
done <<< "$new_files"
|
done <<<"$new_files"
|
||||||
|
|
||||||
echo "$current_files" > "$STATE_FILE"
|
echo "$current_files" >"$STATE_FILE"
|
||||||
echo "[comfyui-sync] State file updated."
|
echo "[comfyui-sync] State file updated."
|
||||||
else
|
else
|
||||||
echo "[comfyui-sync] No new files to copy."
|
echo "[comfyui-sync] No new files to copy."
|
||||||
|
|||||||
Reference in New Issue
Block a user