From 28896fd194639c7da30b0cf84a2b0d7f09101779 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 19 Feb 2026 05:24:32 +0000 Subject: [PATCH] Add progress feedback to import-photos.sh scan step The find command to count photos can take a long time on large collections or slow mounts. Added visible output so it doesn't look like the script hung. https://claude.ai/code/session_01NAtxAkC5t6YVb3gcP1VcX8 --- ubuntu-post-install.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ubuntu-post-install.sh b/ubuntu-post-install.sh index 6bb3c1d..07f04b4 100644 --- a/ubuntu-post-install.sh +++ b/ubuntu-post-install.sh @@ -3186,9 +3186,12 @@ if [ ! -d "$SOURCE_DIR" ]; then echo "" exit 1 fi +echo " ✓ Source directory: $SOURCE_DIR" +echo -n " Scanning for photos/videos (this may take a while)..." PHOTO_COUNT=$(find "$SOURCE_DIR" -type f \( -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.png" -o -iname "*.heic" -o -iname "*.heif" -o -iname "*.webp" -o -iname "*.gif" -o -iname "*.tiff" -o -iname "*.bmp" -o -iname "*.mp4" -o -iname "*.mov" -o -iname "*.avi" -o -iname "*.mkv" -o -iname "*.webm" \) 2>/dev/null | wc -l) -echo " ✓ Found ~$PHOTO_COUNT photos/videos in $SOURCE_DIR" +echo " done" +echo " ✓ Found ~$PHOTO_COUNT photos/videos" # ── Get or create API key ─────────────────────────────────────── API_KEY="${1:-}"