summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorXuefer <xuefer@gmail.com>2014-11-07 19:17:52 +0000
committerXuefer <xuefer@gmail.com>2014-11-07 19:17:52 +0000
commitc130a0d58900e7a024135a328dedb112df109995 (patch)
treed5ef46a432d9b3cf7faf33eb2c0bc0ba0ec57eae /devel
parentd1616637c755369b95223d3ab3c7e69539313b13 (diff)
downloadxcache-c130a0d58900e7a024135a328dedb112df109995.tar.gz
xcache-c130a0d58900e7a024135a328dedb112df109995.zip
clean, return pipe status
git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1550 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
Diffstat (limited to 'devel')
-rwxr-xr-xdevel/run7
1 files changed, 4 insertions, 3 deletions
diff --git a/devel/run b/devel/run
index 4996bb6..5559c17 100755
--- a/devel/run
+++ b/devel/run
@@ -9,9 +9,9 @@ true() { # {{{1
}
hi() { # {{{1
- colors=(4 2 3 5 6 7 8 9)
- re=()
- i=0
+ local colors=(4 2 3 5 6 7 8 9)
+ local re=()
+ local i=0
for r in "$@"; do
((color=$i % ${#colors[@]})) || true
color=${colors[$color]}
@@ -365,6 +365,7 @@ run() {
;;
*)
"$@" | tee output.php
+ return ${PIPESTATUS[0]}
;;
esac
;;