From fe3ad332650c01ef7bd028f1c8fe535d49be3089 Mon Sep 17 00:00:00 2001 From: "nap.liu" Date: Sat, 1 Jul 2023 13:37:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20curl=20|=20bash=20?= =?UTF-8?q?=E8=BF=90=E8=A1=8C=E9=94=99=E8=AF=AF=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Please enter the commit message for your changes. Lines starting with '' will be ignored, and an empty message aborts the commit. On branch master Changes to be committed: modified: enable-web-station-websocket.sh --- enable-web-station-websocket.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/enable-web-station-websocket.sh b/enable-web-station-websocket.sh index a3fe341..72d7ff5 100644 --- a/enable-web-station-websocket.sh +++ b/enable-web-station-websocket.sh @@ -77,13 +77,12 @@ fi echo -e "found docker container count: $RED$dockerContainerCount"$END dispalyServices() { - echo "请输入服务序号 启用WebSocket" jq -r 'map(.display_name) | to_entries | map((.key + 1 | tostring) + ") " + .value) | .[]' <<<$webStationService } selectService() { dispalyServices - while read index; do + while read -p "请输入启动Websocket的服务序号# " index; do if ((index - 1 < 0)); then dispalyServices continue @@ -93,7 +92,7 @@ selectService() { break fi dispalyServices - done + done <&1 } modifyNginxServiceTemplate() {