Commit 4f266226 authored by Dan Pascu's avatar Dan Pascu

Better way to find the blink pid

parent a6288f85
#!/bin/sh
if [ $# = 0 ]; then
blink_pid=$(ps x | grep -E '\./blink|bin/blink' | grep -v grep | head -1 | awk '{print $1}')
blink_pid=$(ps h -o pid -C blink | head -1)
else
blink_pid=$1
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment