Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion hugegraph-pd/hg-pd-dist/src/assembly/static/bin/util.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ function process_id() {

# check the port of rest server is occupied
function check_port() {
local port=`echo $1 | awk -F':' '{print $3}'`
local port=$(echo "$1" | sed 's|.*:||' | sed 's|/.*||')
if ! command_available "lsof"; then
echo "Required lsof but it is unavailable"
exit 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ function process_id() {

# check the port of rest server is occupied
function check_port() {
local port=$(echo "$1" | awk -F':' '{print $3}')
local port=$(echo "$1" | sed 's|.*:||' | sed 's|/.*||')
if ! command_available "lsof"; then
echo "Required lsof but it is unavailable"
exit 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ function process_id() {

# check the port of rest server is occupied
function check_port() {
local port=`echo $1 | awk -F':' '{print $3}'`
local port=$(echo "$1" | sed 's|.*:||' | sed 's|/.*||')
if ! command_available "lsof"; then
echo "Required lsof but it is unavailable"
exit 1
Expand Down
Loading