aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Kummerlaender2016-03-03 21:21:17 +0100
committerAdrian Kummerlaender2016-03-03 21:21:17 +0100
commite1dabdef0969abbed1c3f13290079506ae52444e (patch)
treedfeeb19689dd6f8433ff915ca3e92b21bfac942c
parentf357d79176ffbde8947a8c9b039729273f7411cd (diff)
downloadchange-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-xchange9
1 files 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