]> gitweb.fluxo.info Git - utils-gpg.git/commitdiff
Fix: gpg-agent-eval: avoid bashism
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 9 Aug 2024 13:22:05 +0000 (10:22 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 9 Aug 2024 13:22:05 +0000 (10:22 -0300)
gpg-agent-eval

index fab73343bec91e06491e8ebe5bbc604553f9d7cc..76bebe40df8a14781d2d110c9a3209885e136791 100755 (executable)
@@ -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