Explorar el Código

MOD: fix bash syntax

zhangxin hace 8 años
padre
commit
5780df320f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      tool/start-server.sh

+ 1 - 1
tool/start-server.sh

@@ -14,7 +14,7 @@ while getopts "p:" OPT; do
     esac
 done
 
-if [ "$OPT" == 'dev' ]; then
+if [[ "$OPT" == 'dev' ]]; then
     java -jar -Djava.security.egd=file:/dev/./urandom -Dspring.profiles.active=$profile target/mooctest-site-server.jar
 else
     screen -dm java -jar -Djava.security.egd=file:/dev/./urandom -Dspring.profiles.active=$profile target/mooctest-site-server.jar &