From 76c7d28e093274193bffedc88acf3fe5a73bf45b Mon Sep 17 00:00:00 2001 From: Michal Sustr Date: Wed, 3 Dec 2025 12:07:01 +0100 Subject: [PATCH] Kitdiff setup: Rename paths to examples --- scripts/accept_snapshots.sh | 2 +- scripts/update_snapshots_from_ci.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/accept_snapshots.sh b/scripts/accept_snapshots.sh index 9e02eadb..af2eabf8 100755 --- a/scripts/accept_snapshots.sh +++ b/scripts/accept_snapshots.sh @@ -5,7 +5,7 @@ set -eu # rename the .new.png files to .png -find . -type d -path "*/tests/snapshots*" | while read dir; do +find . -type d -path "./examples/*" | while read dir; do find "$dir" -type f -name "*.new.png" | while read file; do mv -f "$file" "${file%.new.png}.png" done diff --git a/scripts/update_snapshots_from_ci.sh b/scripts/update_snapshots_from_ci.sh index 46262d72..59b34766 100755 --- a/scripts/update_snapshots_from_ci.sh +++ b/scripts/update_snapshots_from_ci.sh @@ -16,7 +16,7 @@ else fi # remove any existing .new.png that might have been left behind -find . -type d -path "*/tests/snapshots*" | while read dir; do +find . -type d -path "./examples/*" | while read dir; do find "$dir" -type f -name "*.new.png" | while read file; do rm "$file" done