fix: add sudo.
This commit is contained in:
1 parent
5bb24b3864
commit
54bccc5897
1 file changed
+1
-1
+1
-1
@@ -194,7 +194,7 @@ function _error_quit() {
|
||||
|
||||
_is_bind() {
|
||||
local port=$1
|
||||
{ ss -tulnp || netstat -tulnp; } | grep ":${port}\b"
|
||||
{ sudo ss -tulnp || sudo netstat -tulnp; } | grep ":${port}\b"
|
||||
}
|
||||
|
||||
_is_already_in_use() {
|
||||
|
||||
Reference in new issue
Block a user