clean, return pipe status
git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1550 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
This commit is contained in:
parent
d1616637c7
commit
c130a0d589
|
@ -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
|
||||
;;
|
||||
|
|
Loading…
Reference in New Issue