File tree Expand file tree Collapse file tree
hugegraph-pd/hg-pd-dist/src/assembly/static/bin
hugegraph-server/hugegraph-dist/src/assembly/static/bin
hugegraph-store/hg-store-dist/src/assembly/static/bin Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ function process_id() {
8383
8484# check the port of rest server is occupied
8585function check_port() {
86- local port=` echo $1 | awk -F ' : ' ' {print $3} ' `
86+ local port=$( echo " $1 " | sed ' s|.*:|| ' | sed ' s|/.*|| ' )
8787 if ! command_available " lsof" ; then
8888 echo " Required lsof but it is unavailable"
8989 exit 1
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ function process_id() {
8181
8282# check the port of rest server is occupied
8383function check_port() {
84- local port=$( echo " $1 " | awk -F ' : ' ' {print $3} ' )
84+ local port=$( echo " $1 " | sed ' s|.*:|| ' | sed ' s|/.*|| ' )
8585 if ! command_available " lsof" ; then
8686 echo " Required lsof but it is unavailable"
8787 exit 1
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ function process_id() {
8282
8383# check the port of rest server is occupied
8484function check_port() {
85- local port=` echo $1 | awk -F ' : ' ' {print $3} ' `
85+ local port=$( echo " $1 " | sed ' s|.*:|| ' | sed ' s|/.*|| ' )
8686 if ! command_available " lsof" ; then
8787 echo " Required lsof but it is unavailable"
8888 exit 1
You can’t perform that action at this time.
0 commit comments