summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul C. Buetow (mars.fritz.box) <paul@buetow.org>2014-06-20 01:41:53 +0200
committerPaul C. Buetow (mars.fritz.box) <paul@buetow.org>2014-06-20 01:41:53 +0200
commit9c946bcc2b78ff0bb7564b8339b185a26c74618a (patch)
tree5eb00d0002c326f1ada23cdf0306e22e36d920ff
parent9608841a01eb76a59b6193a54682383a1b41d68b (diff)
fix exit status0.0.3
-rwxr-xr-xsrc/netdiff2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/netdiff b/src/netdiff
index 4d56372..8c2d6b6 100755
--- a/src/netdiff
+++ b/src/netdiff
@@ -36,8 +36,10 @@ fi
if [ $RC -ne 0 ]; then
echo 'Could not copy file via the network'
+ RC=2 # Default trouble exit status of diff
else
diff $@ ${FILE} ${TMPFILE} ${DIFF_DEFAULT_OPTS}
+ RC=$?
fi
[ -f $TMPFILE ] && rm $TMPFILE