mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-07-26 23:32:11 +00:00
fix: preserve active Pages previews
This commit is contained in:
parent
9ef56a6b52
commit
35cf01113b
1 changed files with 4 additions and 4 deletions
8
.github/workflows/pages_cleanup.yml
vendored
8
.github/workflows/pages_cleanup.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue