Parcourir la source

MOD: fix bash syntax

zhangxin il y a 8 ans
Parent
commit
5780df320f
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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 &