File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -191,7 +191,7 @@ while true; do
191191 shift 2
192192 ;;
193193 -p | --pid)
194- pid =" $2 "
194+ pid_list =" $2 "
195195 shift 2
196196 ;;
197197 -a | --append-file)
@@ -312,15 +312,15 @@ headInfo() {
312312 echo
313313}
314314
315- if [ -n " ${pid } " ]; then
316- readonly ps_process_select_options=" -p $pid "
315+ if [ -n " ${pid_list } " ]; then
316+ readonly ps_process_select_options=" -p $pid_list "
317317else
318318 readonly ps_process_select_options=" -C java -C jsvc"
319319fi
320320
321321__die_when_no_java_process_found () {
322- if [ -n " ${pid } " ]; then
323- die " process($pid ) is not running, or not java process!"
322+ if [ -n " ${pid_list } " ]; then
323+ die " process($pid_list ) is not running, or not java process!"
324324 else
325325 die ' No java process found!'
326326 fi
You can’t perform that action at this time.
0 commit comments