Skip to content

Commit

Permalink
script: logging tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
bakerboy448 committed Jul 25, 2024
1 parent 4a065c4 commit dd7a0f8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions scripts/indexer-sync-v2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ handle_branch_reset() {
if $is_dev_exec; then
git checkout -B "$prowlarr_target_branch"
log "INFO" "Checked out out local branch [$prowlarr_target_branch]"
log "DEBUG" "Development Mode - Skipping reset to upstream/master"
log "DEBUG" "Development Mode - Skipping reset to [$prowlarr_remote_name/$prowlarr_target_branch]"
else
git reset --hard "$prowlarr_remote_name"/"$prowlarr_target_branch"
log "INFO" "local [$prowlarr_target_branch] hard reset based on [$prowlarr_remote_name/$PROWLARR_RELEASE_BRANCH]"
Expand Down Expand Up @@ -633,15 +633,16 @@ cleanup_and_commit() {
push_changes() {
push_branch="$prowlarr_target_branch"
log "INFO" "Evaluating for Push to Remote"
log "DEBUG" " Push Modes for Branch $push_branch: Push To Remote: $push_mode with Force Push With Lease: $push_mode_force"
log "DEBUG" " Push Modes for Branch: $push_branch"
log "DEBUG" "Push To Remote: $push_mode with Force Push With Lease: $push_mode_force"
if [ "$push_mode" = true ] && [ "$push_mode_force" = true ]; then
git push "$prowlarr_remote_name" "$push_branch" --force-if-includes --force-with-lease
log "WARN" "[$prowlarr_remote_name $push_branch] Branch Force Pushed"
elif [ "$push_mode" = true ]; then
git push "$prowlarr_remote_name" "$push_branch" --force-if-includes
log "SUCCESS" "[$prowlarr_remote_name $push_branch] Branch Pushed"
else
log "SUCCESS" "Skipping Push to [$prowlarr_remote_name $push_branch] you should consider pushing manually and/or submitting a pull-request."
log "SUCCESS" "Skipping Push to [$prowlarr_remote_name/$push_branch] you should consider pushing manually and/or submitting a pull-request."
fi
}

Expand Down

0 comments on commit dd7a0f8

Please sign in to comment.