Skip to content

Commit

Permalink
更新 init
Browse files Browse the repository at this point in the history
  • Loading branch information
edwinhuish committed Nov 16, 2023
1 parent 41bffef commit 6b617b4
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions init
Original file line number Diff line number Diff line change
Expand Up @@ -38,24 +38,29 @@ function register_if_need() {
}

function wait_for_warp_ready() {

echo "------------------------------"
echo "Waiting for WARP service..."
echo "------------------------------"

sleep 1

while true; do

if ! warp-cli status >/dev/null 2>&1; then

echo "--------------------------"
echo "等待 warp 服务启动。。。"
echo "--------------------------"
sleep 1
continue

fi

echo "--------------------------"
echo "warp 服务启动成功"
echo "--------------------------"
break

done

echo "------------------------------"
echo "WARP service started!"
echo "------------------------------"
}

function run_after_warp_ready() {
Expand Down

0 comments on commit 6b617b4

Please sign in to comment.