From 24cc2ea4bb0796e25daa0911e4cb67de9d9236f2 Mon Sep 17 00:00:00 2001 From: Dict Xiong Date: Wed, 19 Jun 2024 16:52:09 +0800 Subject: [PATCH] fix(dnew): sleep 1s before checking code-server --- hosts/modules/scripts/dnew | 1 + 1 file changed, 1 insertion(+) diff --git a/hosts/modules/scripts/dnew b/hosts/modules/scripts/dnew index 2ef201b..d303657 100755 --- a/hosts/modules/scripts/dnew +++ b/hosts/modules/scripts/dnew @@ -71,6 +71,7 @@ if [[ "$ret" == "1" ]]; then echo "Container $container_name started. You can use the following command to get in:" echo "sudo docker exec -it $container_name bash" if [[ "$image_name" == "git.nasp.fit/nasp/nasp-ubuntu" ]]; then + sleep 1s sudo docker exec -it $container_name code.sh fi else