diff options
author | Adrian Kummerlaender | 2016-03-03 21:21:17 +0100 |
---|---|---|
committer | Adrian Kummerlaender | 2016-03-03 21:21:17 +0100 |
commit | e1dabdef0969abbed1c3f13290079506ae52444e (patch) | |
tree | dfeeb19689dd6f8433ff915ca3e92b21bfac942c | |
parent | f357d79176ffbde8947a8c9b039729273f7411cd (diff) | |
download | change-e1dabdef0969abbed1c3f13290079506ae52444e.tar change-e1dabdef0969abbed1c3f13290079506ae52444e.tar.gz change-e1dabdef0969abbed1c3f13290079506ae52444e.tar.bz2 change-e1dabdef0969abbed1c3f13290079506ae52444e.tar.lz change-e1dabdef0969abbed1c3f13290079506ae52444e.tar.xz change-e1dabdef0969abbed1c3f13290079506ae52444e.tar.zst change-e1dabdef0969abbed1c3f13290079506ae52444e.zip |
Verify existence of log file, set appropriate return code
-rwxr-xr-x | change | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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 |