修复 curl | bash 运行错误问题
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
This commit is contained in:
		
							parent
							
								
									189129bd10
								
							
						
					
					
						commit
						fe3ad33265
					
				@ -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() {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user