diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2024-08-09 10:22:05 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2024-08-09 10:22:05 -0300 |
commit | f3e53d130c16cf2314c4e6bf68d903ca699388f3 (patch) | |
tree | 92be0ce2b96be7c882d26d49f24f0ac3b69cbdf2 | |
parent | cefbc9617467936c4eea9debe7503cbdce3c4377 (diff) | |
download | utils-gpg-f3e53d130c16cf2314c4e6bf68d903ca699388f3.tar.gz utils-gpg-f3e53d130c16cf2314c4e6bf68d903ca699388f3.tar.bz2 |
Fix: gpg-agent-eval: avoid bashism
-rwxr-xr-x | gpg-agent-eval | 6 |
1 files 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 |