aboutsummaryrefslogtreecommitdiff
path: root/kshrc
diff options
context:
space:
mode:
Diffstat (limited to 'kshrc')
-rw-r--r--kshrc4
1 files 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