mirror of
https://github.com/correl/rebar.git
synced 2024-12-18 03:00:17 +00:00
Revert to using awk instead of cut
This commit is contained in:
parent
90c5da8033
commit
6304c19180
1 changed files with 3 additions and 3 deletions
|
@ -70,16 +70,16 @@ case "$1" in
|
||||||
Linux|Darwin|FreeBSD|DragonFly|NetBSD|OpenBSD)
|
Linux|Darwin|FreeBSD|DragonFly|NetBSD|OpenBSD)
|
||||||
# PID COMMAND
|
# PID COMMAND
|
||||||
PID=`ps ax -o pid= -o command=|\
|
PID=`ps ax -o pid= -o command=|\
|
||||||
grep "$RUNNER_BASE_DIR/.*/[b]eam"|cut -d' ' -f1`
|
grep "$RUNNER_BASE_DIR/.*/[b]eam"|awk '{print $1}'`
|
||||||
;;
|
;;
|
||||||
SunOS)
|
SunOS)
|
||||||
# PID COMMAND
|
# PID COMMAND
|
||||||
PID=`ps -ef -o pid= -o args=|\
|
PID=`ps -ef -o pid= -o args=|\
|
||||||
grep "$RUNNER_BASE_DIR/.*/[b]eam"|cut -d' ' -f1`
|
grep "$RUNNER_BASE_DIR/.*/[b]eam"|awk '{print $1}'`
|
||||||
;;
|
;;
|
||||||
CYGWIN*)
|
CYGWIN*)
|
||||||
# UID PID PPID TTY STIME COMMAND
|
# UID PID PPID TTY STIME COMMAND
|
||||||
PID=`ps -efW|grep "$RUNNER_BASE_DIR/.*/[b]eam"|cut -d' ' -f2`
|
PID=`ps -efW|grep "$RUNNER_BASE_DIR/.*/[b]eam"|awk '{print $2}'`
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
$NODETOOL stop
|
$NODETOOL stop
|
||||||
|
|
Loading…
Reference in a new issue