Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
850c1128
Commit
850c1128
authored
Mar 13, 2016
by
neil
Browse files
fix nc -q param for centos5
parent
22514bee
Changes
1
Show whitespace changes
Inline
Side-by-side
le.sh
View file @
850c1128
...
...
@@ -354,11 +354,12 @@ _saveaccountconf() {
_startserver
()
{
content
=
"
$1
"
_NC
=
"nc -q 1 -l"
nchelp
=
"
$(
nc
-h
2>&1
)
"
#centos
if
echo
"
$nchelp
"
|
grep
"nmap.org/ncat"
>
/dev/null
;
then
if
echo
"
$nchelp
"
|
grep
"
\-
q "
>
/dev/null
;
then
_NC
=
"nc -q 1 -l"
else
_NC
=
"nc -l"
fi
...
...
@@ -701,7 +702,7 @@ issue() {
elif
[
"
$code
"
==
'409'
]
;
then
_info
"Already registered"
else
_err
"Register account Error
.
"
_err
"Register account Error
:
$response
"
_clearup
return
1
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment