From ae8535e29203ed23a1efc7767a4597729cdc48ec Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Thu, 3 Mar 2011 16:16:23 +0000 Subject: exit with the status of the program being run instead of 0 --- filter.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'filter.sh') 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 -- cgit v1.2.1