Skip to content

Commit

Permalink
Script indexer-sync-v2.sh fix conflict handling
Browse files Browse the repository at this point in the history
  • Loading branch information
bakerboy448 authored Jun 15, 2024
1 parent efdeb7f commit 6fb075a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions scripts/indexer-sync-v2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ commit_and_push() {
prowlarr_jackett_commit_message=$(echo "$prowlarr_commits" | awk 'NR==1')
if [ "$is_dev_exec" = true ]; then
log "DEBUG" "Jackett Remote is [$JACKETT_REMOTE_NAME/$JACKETT_BRANCH]"
read -r -p "Pausing to review commits. Press any key to continue." -n1 -s
# read -r -p "Pausing to review commits. Press any key to continue." -n1 -s
fi
jackett_recent_commit=$(git rev-parse "$JACKETT_REMOTE_NAME/$JACKETT_BRANCH")
log "INFO" "most recent Jackett commit is: [$jackett_recent_commit] from [$JACKETT_REMOTE_NAME/$JACKETT_BRANCH]"
Expand All @@ -235,7 +235,7 @@ commit_and_push() {
log "INFO" "There are [$commit_count] commits to cherry-pick"
if [ "$is_dev_exec" = true ]; then
log "DEBUG" "Get Range Command is [$commit_range_cmd]"
read -r -p "Pausing to review commits. Press any key to continue." -n1 -s
# read -r -p "Pausing to review commits. Press any key to continue." -n1 -s
fi
log "INFO" "Commit Range is: [$commit_range]"
log "INFO" "Beginning Cherrypicking"
Expand Down Expand Up @@ -292,13 +292,13 @@ resolve_conflicts() {

if [ -n "$nonyml_conflicts" ]; then
log "INFO" "Non-YML conflicts exist; removing cs, js, iss, html"
git checkout --ours "package.json"
git checkout --ours "package-lock.json"
git checkout --ours ".editorconfig"
git rm --f --q --ignore-unmatch "*.cs*"
git rm --f --q --ignore-unmatch "*.js*"
git rm --f --q --ignore-unmatch "*.js"
git rm --f --q --ignore-unmatch "*.iss*"
git rm --f --q --ignore-unmatch "*.html*"
git checkout --ours "package.json"
git checkout --ours "package-lock.json"
git checkout --ours ".editorconfig"
fi
if [ -n "$yml_conflicts" ]; then
log "INFO" "YML conflict exists; [$yml_conflicts]"
Expand Down

0 comments on commit 6fb075a

Please sign in to comment.