From: Silvio Rhatto Date: Fri, 9 Aug 2024 13:22:05 +0000 (-0300) Subject: Fix: gpg-agent-eval: avoid bashism X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=f3e53d130c16cf2314c4e6bf68d903ca699388f3;p=utils-gpg.git Fix: gpg-agent-eval: avoid bashism --- 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