Change 22274

tom_tyler (C. Thomas Tyler)
C. Thomas Tyler committed this change into / under Review 22275
View Review
Download .zip
Fixed bug where detection of journal number fails for new/empty data
set.

Removed msg() and bail() functions, and changed approach to make the
existing log() and die() functions behave correctly regardless of
whether $LOGFILE is defined.

If $LOGFILE is defined, log() silently write to the log file, otherwise
writes to the screen (stdout).

If $LOGFILE is defined, die() writes to the log file and sends an
email, otherwise writes to the screen (stdout).  If on a tty, error
is duplicated in stderr.

To Do: Improve in-code comments.

Bypassing pre-commit review until tests pass.

#review-22275
  • Files 1
  • Comments 0
1 edited 0 added 0 deleted
guest/perforce_software/sdp/dev/Server/Unix/p4/common/bin/backup_functions.sh#50
Loading...
Tip: Use n and p to cycle through the changes.