Browse Source

clean, return pipe status

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1550 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
master
Xuefer 7 years ago
parent
commit
c130a0d589
  1. 7
      devel/run

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

Loading…
Cancel
Save