From 5590b1520df9fe91d98084e878ff77c0bd5ed44f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B8=BA=E5=B0=8F?= <345123812@qq.com> Date: Fri, 22 Nov 2019 18:16:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=89=20bug=20=E5=95=8A=E3=80=82=E3=80=82?= =?UTF-8?q?=E3=80=82-=20-=EF=BC=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/tmssh | 6 ++++-- etc/hosts.txt.template | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/bin/tmssh b/bin/tmssh index 84c5794..582619b 100755 --- a/bin/tmssh +++ b/bin/tmssh @@ -55,8 +55,10 @@ TMSSH_OPTION_I=0 TMSSH_OPTION_S=0 TMSSH_OPTION_W=0 -#set -- $(getopt -q abcdefghijklmn:opqrstuvwxyz "$@") -set -- $(getopt -q hvleAn:p:u:i:s:w: "$@") +set -- $(getopt -q abcdefghijklmn:opqrstuvwxyz "$@") +#OPT_CMD=$(getopt -q hvleAn:p:u:i:s:w: $@) +#set -- $OPT_CMD + # 检查选项 while [ -n "$1" ] do diff --git a/etc/hosts.txt.template b/etc/hosts.txt.template index 8466e85..2a61163 100644 --- a/etc/hosts.txt.template +++ b/etc/hosts.txt.template @@ -1,5 +1,5 @@ # ip1[/ip2[/ip3[/ip...]]] project_tag1[,project_tag2[,project_tag...]] [only_connect_to_host_options...] -# project_tag内容只能这些字符: [0-9] [a-z] [A-Z] - _ +# project_tag内容只能这些字符: [0-9] [a-z] [A-Z] _ # only_connect_to_host_options选项格式必须是 -OPTION1 [parameter1] -OPTION2 [parameter2] 这样的格式,并且只能是连接到主机的选项 1.2.3.4/5.6.7.8/9.10.11.12 test,test_tag1,test2,test_tag3 -u root -i ~/.ssh/id_rsa_some -A -p 20222