Skip to content

Commit b4c009e

Browse files
committed
solve review comments
1 parent 018110a commit b4c009e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sbin/spark-daemon.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,7 @@ case $option in
168168
TARGET_ID="$(cat "$pid")"
169169
if [[ $(ps -p "$TARGET_ID" -o comm=) =~ "java" ]]; then
170170
echo "stopping $command"
171-
kill "$TARGET_ID"
172-
rm -f $pid
171+
kill "$TARGET_ID" && rm -f $pid
173172
else
174173
echo "no $command to stop"
175174
fi

0 commit comments

Comments
 (0)