From f3e53d130c16cf2314c4e6bf68d903ca699388f3 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 9 Aug 2024 10:22:05 -0300 Subject: Fix: gpg-agent-eval: avoid bashism --- gpg-agent-eval | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gpg-agent-eval b/gpg-agent-eval index fab7334..76bebe4 100755 --- a/gpg-agent-eval +++ b/gpg-agent-eval @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh # # Initialize the gpg-agent # @@ -7,9 +7,9 @@ GPG_TTY=`tty` export GPG_TTY -function gpg_agent_eval_run { +gpg_agent_eval_run() { if test -f $HOME/.gpg-agent-info && \ - kill -0 `cut -d: -f 2 $HOME/.gpg-agent-info` 2>/dev/null; then + kill -0 `cut -d: -f 2 $HOME/.gpg-agent-info` 2> /dev/null; then GPG_AGENT_INFO=`cat $HOME/.gpg-agent-info` export GPG_AGENT_INFO else -- cgit v1.2.3