aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2024-08-09 10:22:05 -0300
committerSilvio Rhatto <rhatto@riseup.net>2024-08-09 10:22:05 -0300
commitf3e53d130c16cf2314c4e6bf68d903ca699388f3 (patch)
tree92be0ce2b96be7c882d26d49f24f0ac3b69cbdf2
parentcefbc9617467936c4eea9debe7503cbdce3c4377 (diff)
downloadutils-gpg-f3e53d130c16cf2314c4e6bf68d903ca699388f3.tar.gz
utils-gpg-f3e53d130c16cf2314c4e6bf68d903ca699388f3.tar.bz2
Fix: gpg-agent-eval: avoid bashism
-rwxr-xr-xgpg-agent-eval6
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