1
0
mirror of https://github.com/Prowlarr/Indexers.git synced 2025-12-20 02:58:28 +00:00

feat: add debug mode option to sync workflow

This commit is contained in:
Servarr
2025-08-13 13:24:43 -05:00
parent 8435eb2d01
commit 6e6a8d0ac8
2 changed files with 11 additions and 2 deletions

View File

@@ -568,7 +568,7 @@ resolve_conflicts() {
}
handle_yml_conflicts() {
yml_remove=$(git status --porcelain | grep yml | grep -vi "definitions/" | awk -F '[ADUMRC]{1,2} ' '{print $2}' | awk '{ gsub(/^[ \t]+|[ \t]+$/, ""); print }')
yml_remove=$(git status --porcelain | grep yml | grep -vi "definitions/" | grep -v "definitions-update" | awk -F '[ADUMRC]{1,2} ' '{print $2}' | awk '{ gsub(/^[ \t]+|[ \t]+$/, ""); print }')
for def in $yml_remove; do
log "DEBUG" "Removing non-definition yml; [$yml_remove]"
if git ls-files | grep -q "^$yml_remove$"; then