Merge pull request #1341 from Stremio/fix-pages-cleanup-root-branches
Some checks are pending
Build / build (push) Waiting to run

This commit is contained in:
Timothy Z. 2026-07-20 11:19:37 +03:00 committed by GitHub
commit 3836d1b37c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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