fix: preserve active Pages previews

This commit is contained in:
Timothy Z. 2026-07-20 10:25:24 +03:00
parent 9ef56a6b52
commit 35cf01113b

View file

@ -30,15 +30,15 @@ jobs:
continue
fi
keep_parent=false
keep_related=false
for branch in "${branches[@]}"; do
if [[ "$branch" == "$path/"* ]]; then
keep_parent=true
if [[ "$branch" == "$path/"* || "$path" == "$branch/"* ]]; then
keep_related=true
break
fi
done
if ! $keep_parent; then
if ! $keep_related; then
echo "Deleting $dir"
rm -rf "$dir"
fi