周浩 hace 9 años
padre
commit
ddfae28c3e
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      hsweb-web-run/run-in-docker.sh

+ 1 - 1
hsweb-web-run/run-in-docker.sh

@@ -6,7 +6,7 @@ link_oracle=oracle11g
 server_port=9888
 if [ -f "target/hsweb-web-run-1.0-SNAPSHOT.jar" ]; then
         container_id=$(docker ps | grep "${container_name}" | awk '{print $1}')
-        if [ "container_id" != "" ];then
+        if [ "${container_id}" != "" ];then
             docker stop ${container_name}
             docker rm ${container_name}
             docker rmi  ${image_name}