BakaChinatsu / lnmp-chacha20

12 stars 0 forks source link

include/upgrade_nginx-chacha20.sh中版本检测代码返回值多出3行空行 #20

Open mikelei8291 opened 8 years ago

mikelei8291 commented 8 years ago

代码

Cur_Nginx_Version=`/usr/local/nginx/sbin/nginx -v 2>&1 | cut -c22-`
Cur_Pgs_Version=`/usr/local/nginx/sbin/nginx -V 2>&1 | cut -c 276-284` #先这样测试一下。。。
Cur_Lbs_Version=`/usr/local/nginx/sbin/nginx -V 2>&1 | cut -c 217-221`

返回值

Current ngx_pagespeed Version:

1.9.32.10
Current Libressl Version:

2.3.0
BakaChinatsu commented 8 years ago

orz这个咱不知道该怎么解决QAQ

mikelei8291 commented 8 years ago

应该是 cut 的时候剪切多了吧,改一下参数试试?

BakaChinatsu commented 8 years ago

咱晚上試試w

Mike Lei notifications@github.com于2015年12月2日周三 02:40写道:

应该是 cut 的时候剪切多了吧,改一下参数试试?

— Reply to this email directly or view it on GitHub https://github.com/hanzexu990323/lnmp-chacha20/issues/20#issuecomment-161043573 .

zhangyubaka commented 8 years ago

添加/n换行?