From e1dabdef0969abbed1c3f13290079506ae52444e Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Thu, 3 Mar 2016 21:21:17 +0100 Subject: Verify existence of log file, set appropriate return code --- change | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/change b/change index 6fe7925..bb21de3 100755 --- a/change +++ b/change @@ -7,5 +7,10 @@ export CHANGE_LOG_IGNORE_PATTERN_PATH="$FILTER_PATH/$(basename $1).filter" LD_PRELOAD=libChangeLog.so eval "$@" -cat $CHANGE_LOG_TARGET -rm -f $CHANGE_LOG_TARGET +if [ -e $CHANGE_LOG_TARGET ] +then + cat $CHANGE_LOG_TARGET + rm -f $CHANGE_LOG_TARGET +else + false +fi -- cgit v1.2.3