报错代码
[: ......: unary operator expected
解决方法
# vim <Shell Script>
将以下内容修改为:
......
if [[ ...... ]];
......
修改为:
......
if [[ ...... ]];
......
[: ......: unary operator expected
# vim <Shell Script>
将以下内容修改为:
......
if [[ ...... ]];
......
修改为:
......
if [[ ...... ]];
......