- fix "syntax error in gpg-agent-startup.sh" (#206887)

This commit is contained in:
Rex Dieter 2006-09-18 12:49:00 +00:00
parent 430f4c6232
commit c77cd588af
2 changed files with 5 additions and 5 deletions

View File

@ -16,7 +16,7 @@
Summary: Utility for secure communication and data storage
Name: gnupg2
Version: 1.9.22
Release: 4%{?dist}
Release: 5%{?dist}
License: GPL
Group: Applications/System
@ -170,7 +170,7 @@ rm -rf $RPM_BUILD_ROOT
%changelog
* Mon Sep 18 2006 Rex Dieter <rexdieter[AT]users.sf.net> 1.9.22-4
* Mon Sep 18 2006 Rex Dieter <rexdieter[AT]users.sf.net> 1.9.22-5
- fix "syntax error in gpg-agent-startup.sh" (#206887)
* Thu Sep 07 2006 Rex Dieter <rexdieter[AT]users.sf.net> 1.9.22-3

View File

@ -2,12 +2,12 @@
GPG_AGENT=/usr/bin/gpg-agent
## Run gpg-agent only if not already running, and available
if [ -z "${GPG_AGENT_INFO}" -a -x ${GPG_AGENT} ] ; then
if [ -z "${GPG_AGENT_INFO}" -a -x "${GPG_AGENT}" ] ; then
# check validity of GPG_SOCKET (in case of session crash)
if [ -f ${HOME}/.gpg-agent-info ]; then
GPG_SOCKET=$(cat .gpg-agent-info |cut -f1 -d:)
if ! test -S ${GPG_SOCKET} -o ! -O ${GPG_SOCKET} ; then
if ! test -S "${GPG_SOCKET}" -o ! -O "${GPG_SOCKET}" ; then
rm -f ${HOME}/.gpg-agent-info 2>&1 >/dev/null
fi
fi
@ -17,7 +17,7 @@ if [ -z "${GPG_AGENT_INFO}" -a -x ${GPG_AGENT} ] ; then
export GPG_TTY=$(tty)
else
eval "$(${GPG_AGENT} -s --daemon ${GPG_OPTIONS})"
echo ${GPG_AGENT_INFO} > ${HOME}/.gpg-agent-info
echo ${GPG_AGENT_INFO} > "${HOME}/.gpg-agent-info"
fi
fi