diff options
| author | Mitchell Riedstra <mitch@riedstra.dev> | 2022-12-15 20:43:30 -0500 |
|---|---|---|
| committer | Mitchell Riedstra <mitch@riedstra.dev> | 2022-12-15 20:56:01 -0500 |
| commit | 8fe446c42385add748ac17aa2ac3e3233c4f915c (patch) | |
| tree | 6d88cd00004882f7763af8cd964f8555b63e92af /kshrc | |
| parent | 201ce6544ccea99abc26cc068c6b5474b34542a7 (diff) | |
| download | dotfiles-8fe446c42385add748ac17aa2ac3e3233c4f915c.tar.gz dotfiles-8fe446c42385add748ac17aa2ac3e3233c4f915c.tar.xz | |
Fix broken checkSSHAgent on OpenBSD
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 |
