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
4013bfd0
Commit
4013bfd0
authored
Jan 07, 2016
by
neil
Browse files
remove dependency to "netstat"
parent
23cb43c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
le.sh
View file @
4013bfd0
...
...
@@ -312,14 +312,11 @@ issue() {
_err
"Please install netcat(nc) tools first."
return
1
fi
if
!
command
-v
"netstat"
>
/dev/null
;
then
_err
"Please install netstat first."
return
1
fi
netprc
=
"
$(
netstat
-ntpl
|
grep
':80 '
)
"
netprc
=
"
$(
ss
-ntpl
|
grep
':80 '
)
"
if
[
"
$netprc
"
]
;
then
_err
"
$netprc
"
_err
"tcp port 80 is already used by
$(
echo
"
$netprc
"
|
cut
-d
'/'
-f
2
)
"
_err
"tcp port 80 is already used by
$(
echo
"
$netprc
"
|
cut
-d
:
-f
4
)
"
_err
"Please stop it first"
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