ps --pid isn't supported by BusyBox

This commit is contained in:
Kevin Cotugno 2018-11-22 11:18:54 -08:00
parent 8930b1d426
commit 7cf168896c

View File

@ -14,7 +14,7 @@ if [[ -e $file ]]; then
pidenv=`cat $file | grep SSH_AGENT_PID`
pid=`printf "$pidenv" | grep -o "[0-9]*"`
ps --pid "$pid" &> /dev/null
kill -0 "$pid" &> /dev/null
if (( ! $? )); then
export "$sockenv"
export "$pidenv"