diff options
Diffstat (limited to 'kshrc')
| -rw-r--r-- | kshrc | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |
