[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前后都不应有空格或其他符号。执行通过,
[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前后都不应有空格或其他符号。执行通过,