Closed ftwbzhao closed 9 years ago
@ftwbzhao Would you leave files under dist
alone? I think it will only be regenerated when we bump its version, thanks.
And I wonder if most of unix environments give *not found
when failed.
I think take the exit status code of type lolcat
will a better method.
When use exit status code
`type lolcat`
if [ $? -ne 127 ]; then
#here $@ = `type lolcat`
echo "$@" | lolcat
else
echo "$@"
fi
@PeterDaveHello depending on you.
@ftwbzhao Would you like to modify this PR to use $? to determinate it?
Hi @ftwbzhao, sorry for the late reply and fix, this problem has been fixed in b7bf7e1 and released in v0.0.6, feel free to try! Thanks.
原来的逻辑校验
lolcat
命令不严谨,当命令不存在时,仍然可以执行echo "$@" | lolcat