1
0
Fork 0

clean, return pipe status

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1550 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
This commit is contained in:
Xuefer 2014-11-07 19:17:52 +00:00
parent d1616637c7
commit c130a0d589
1 changed files with 4 additions and 3 deletions

View File

@ -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
;;