aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2011-03-03 16:16:23 (GMT)
committerNicolas Vigier <boklm@mageia.org>2011-03-03 16:16:23 (GMT)
commitae8535e29203ed23a1efc7767a4597729cdc48ec (patch)
treecc3a6021ce96b7abc90e5503f3f9f66627767ff0
parentfd524c2a0adc3204f43e8db1cda805f7c92abd52 (diff)
exit with the status of the program being run instead of 0
-rwxr-xr-xfilter.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/filter.sh b/filter.sh
index 0bda911..cd96fd8 100755
--- a/filter.sh
+++ b/filter.sh
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
#---------------------------------------------------------------
# Project : Mageia
# Module : rpm
@@ -31,6 +31,6 @@ if [ "$GREP_ARG" != ' ' ]; then
else
cat
fi
-exit 0
+exit ${PIPESTATUS[1]}
# filter.sh ends here