From 8fe446c42385add748ac17aa2ac3e3233c4f915c Mon Sep 17 00:00:00 2001 From: Mitchell Riedstra Date: Thu, 15 Dec 2022 20:43:30 -0500 Subject: Fix broken checkSSHAgent on OpenBSD --- kshrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kshrc b/kshrc index d37807e..505c669 100644 --- a/kshrc +++ b/kshrc @@ -1,4 +1,4 @@ -# Copyright 2021 Mitchell Riedstra +# Copyright 2022 Mitchell Riedstra # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted, provided that the above @@ -374,7 +374,7 @@ checkSSHAgent() { . "$ssh_agent_conf" fi #shellcheck disable=SC2009 - if ! ps -eo pid | grep -q "$SSH_AGENT_PID" \ + if ! ps aux | awk '{print $2}' | grep -q "$SSH_AGENT_PID" \ || ! [ -e "$ssh_agent_conf" ] \ || [ -z "$SSH_AGENT_PID" ] ; \ then -- cgit v1.2.3