Skip to content

Commit

Permalink
有 bug 啊。。。- -!
Browse files Browse the repository at this point in the history
  • Loading branch information
Vastxiao committed Nov 22, 2019
1 parent 4e2f92b commit 5590b15
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions bin/tmssh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion etc/hosts.txt.template
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 5590b15

Please sign in to comment.