fix: cook ocs build sh

This commit is contained in:
zhangsz
2025-04-21 17:08:18 +08:00
parent 4f60a48e97
commit 5acd62a228

View File

@@ -178,10 +178,16 @@ make_ocs_bin()
make_cook_ocs_bin_in_ub12() make_cook_ocs_bin_in_ub12()
{ {
if [ "$(docker ps -a -f name=ubuntu12-dev -f status=exited -q)" ]; then container_id=$(docker ps -a -f name=ubuntu12-dev -q)
docker start ubuntu12-dev if [ -n "$container_id" ]; then
if [ "$(docker ps -a -f name=ubuntu12-dev -f status=exited -q)" ]; then
docker start ubuntu12-dev
fi
docker exec -it ubuntu12-dev /bin/bash -c "cd ~/ocs.git/build/bin && ./build.sh ocs -t cook"
else
echo "Error: Container 'ubuntu12-dev' does not exist. Please create it before running this script."
exit 1
fi fi
docker exec -it ubuntu12-dev /bin/bash -c "cd ~/ocs.git/build/bin && ./build.sh ocs -t cook"
} }
make_cproxy_bin() make_cproxy_bin()