Enhance sync-links.sh