I'm trying to run a shell script to build a docker image, but always getting a error that I cannot correct:
Neomind_dev | build.sh: line 3: syntax error near unexpected token `$'\r''
'eomind_dev | build.sh: line 3: `fi
but the code is super simple:
if [ ! "$(ls /usr/local/fusion)" ]; then
echo aaa
fi
cp /usr/local/fusion/target/fusion-Neomind-dev.war /usr/local/tomcat/webapps/fusion.war
can someone help me?