#!/bin/bash cd "$(dirname "$0")" echo "=== Shahi Kitchen: sync sweets images ===" echo "" if ! node -e "require('sharp')" 2>/dev/null; then echo "Installing sharp for image optimization..." npm install sharp --no-save 2>/dev/null || true fi node scripts/sync-sweets-images.mjs 2>&1 | tee sweets-sync-log.txt echo "" echo "Done. See sweets-sync-log.txt and scripts/sweets-sync-report.json" read -n 1 -s -r -p "Press any key to close..."