From dc5e2049c77d1e5363da8b8e94f3769cc8dfbc92 Mon Sep 17 00:00:00 2001 From: DustVoice Date: Wed, 1 Jun 2022 00:07:42 +0200 Subject: [PATCH] Correct mistake --- .zsh_alias | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.zsh_alias b/.zsh_alias index 020fe7e8..341e80fe 100644 --- a/.zsh_alias +++ b/.zsh_alias @@ -168,7 +168,7 @@ alias bspwm-load="bspwm-load-func workspaces workspaces.prev_load" function hyperv-gpg-agent() { socket_path="$HOME/.gnupg/S.gpg-agent" host_ip=$(ip route show 0.0.0.0/0 dev eth0 | cut -d\ -f3) - if [[ -f $socket_path ]]; then + if [[ -x $socket_path ]]; then rm $socket_path fi (setsid socat UNIX-LISTEN:$socket_path,fork tcp-connect:$host_ip:59545) @@ -177,7 +177,7 @@ function hyperv-gpg-agent() { function hyperv-ssh-agent() { socket_path="$HOME/.gnupg/S.gpg-agent.ssh" host_ip=$(ip route show 0.0.0.0/0 dev eth0 | cut -d\ -f3) - if [[ -f $socket_path ]]; then + if [[ -x $socket_path ]]; then rm $socket_path fi (setsid socat UNIX-LISTEN:$socket_path,fork tcp-connect:$host_ip:59546)