Execute shell script on linux
But when executed, it displays
The directory does exist. what happened? ?
温故而知新,可以为师矣。 博客:www.ouyangke.com
When assigning values to bash variables, there cannot be spaces on both sides of the equal sign. It should be written as:
dir=/webserver/test/
dir =/web...There can be no spaces on the left and right sides of the equal sign
Don’t add a space after dir
When assigning values to bash variables, there cannot be spaces on both sides of the equal sign. It should be written as:
dir =/web...
There can be no spaces on the left and right sides of the equal sign
Don’t add a space after dir