Commit 082363fd authored by zgyzgyhero's avatar zgyzgyhero
Browse files

Update remove bash

parent 82ad1f07
Showing with 4 additions and 1 deletion
+4 -1
......@@ -2,4 +2,7 @@
docker-compose -f docker-compose.yml down
docker-compose -f wecube_core_mysql.yml down
docker rmi `docker images|grep -v $1|grep -E 'platform-core|platform-gateway|wecube-portal|platform-auth-server|wecube-db'|awk '{print $1":"$2}'`
\ No newline at end of file
if [[ -n `docker images|grep -v $1|grep -E 'platform-core|platform-gateway|wecube-portal|platform-auth-server|wecube-db'|awk '{print $1":"$2}'` ]]
then
docker rmi `docker images|grep -v $1|grep -E 'platform-core|platform-gateway|wecube-portal|platform-auth-server|wecube-db'|awk '{print $1":"$2}'`
fi
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment