Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions src/tools/pm_unapply
Original file line number Diff line number Diff line change
Expand Up @@ -97,27 +97,27 @@ clean_backup_patch() {
log

rm -rf "$PM_PATCH_BACKUP_DIR" > /dev/null 2>&1
log "Removed backup"
log " backup: $PM_PATCH_BACKUP_DIR"
log "Removed backup: $PM_PATCH_BACKUP_DIR"
log
}

#
# Bunch of safety checks and required initializations
#

if [ ! -f "$PM_LOG_FILE" ]; then
log "*** Patch Log Created by Unapply $(date) ***"
log "*** Patch-log created by pm_unapply script $(date) ***"
fi

log
log "----------------------------------"
log "PM UNAPPLY $(date)"
log "pm_unapply $(date)"
log "----------------------------------"
log

log "$(basename "$PATCH_DIR")"

log "Using PATCH_FILE=$PATCH_FILE"
log "Using patch file: $PATCH_FILE"

if [ -f "$PATCH_FILE" ]; then
log " contains text patch"
Expand All @@ -126,12 +126,12 @@ fi
log

if [ ! -x "$PATCH_EXEC" ]; then
log "ERROR: Cannot find $PATCH_EXEC"
log "ERROR: Cannot find patch executable $PATCH_EXEC"
failure
fi

if [ ! -f "$PATCH_FILE" ]; then
log "ERROR: Cannot find patch file !"
log "ERROR: Cannot find patch file!"
failure
fi

Expand Down