shell 中EOF

[root@k8s-node2 conf]# sh -x test.sh
+ echo ' '

+ echo ' '

test.sh: line 21: warning: here-document at line 5 delimited by end-of-file (wanted `EOF')

修改成如下:

 

 

 末尾的EOF前后都不应有空格或其他符号。执行通过,

 

posted @ 2021-02-02 14:53  beawh  阅读(187)  评论(0编辑  收藏  举报