Skip to content

Commit 77a6df1

Browse files
authored
[pm_apply] Let log output be more expressive and consistent
Counterpart to MR #226
1 parent dd1a211 commit 77a6df1

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/tools/pm_apply

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,8 @@ create_backup_patch() {
181181

182182
mkdir -p "$PM_PATCH_BACKUP_DIR" > /dev/null 2>&1
183183
cp -f "$PATCH_DIR/$PATCH_NAME" "$PM_PATCH_BACKUP_DIR" > /dev/null 2>&1
184-
log "Created backup"
185-
log " backup: $PM_PATCH_BACKUP_DIR"
184+
log "Created backup: $PM_PATCH_BACKUP_DIR"
185+
log
186186
}
187187

188188
#
@@ -192,12 +192,12 @@ create_backup_patch() {
192192
mkdir -p "$PM_VAR_DIR" > /dev/null 2>&1
193193

194194
if [ ! -f "$PM_LOG_FILE" ]; then
195-
log "*** Patch Log Created by Apply $(date) ***"
195+
log "*** Patch-log created by pm_apply script $(date) ***"
196196
fi
197197

198198
log
199199
log "----------------------------------"
200-
log "PM APPLY $(date)"
200+
log "pm_apply $(date)"
201201
log "----------------------------------"
202202
log
203203

@@ -210,12 +210,12 @@ fi
210210
log
211211

212212
if [ ! -x "$PATCH_EXEC" ]; then
213-
log "ERROR: Cannot find $PATCH_EXEC"
213+
log "ERROR: Cannot find patch executable $PATCH_EXEC"
214214
failure
215215
fi
216216

217217
if [ -z "$PATCH_DIR" ]; then
218-
log "ERROR: PATCH_DIR must be given for installing"
218+
log "ERROR: PATCH_DIR must be provided for installing!"
219219
failure
220220
fi
221221

@@ -225,7 +225,7 @@ if [ ! -d "$PATCH_DIR" ]; then
225225
fi
226226

227227
if [ ! -f "$PATCH_PATH" ]; then
228-
log "ERROR: Cannot find patch file !"
228+
log "ERROR: Cannot find patch file!"
229229
failure
230230
fi
231231

0 commit comments

Comments
 (0)