Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Starting up gpg-agent script
Date: Sun, 14 Mar 2010 20:25:00
Message-Id: 201003142023.41392.michaelkintzios@gmail.com
1 Hi All,
2
3 I am trying this script in /etc/env.d/90gpg-agent:
4 ================================
5 if test -f $HOME/.gpg-agent-info && kill -0 `cut -d: -f 2
6 $HOME/.gpg-agent-info` 2>/dev/null; then
7 GPG_AGENT_INFO=`cat $HOME/.gpg-agent-info`
8 export GPG_AGENT_INFO
9 else
10 eval `/usr/bin/gpg-agent --daemon`
11 echo $GPG_AGENT_INFO >$HOME/.gpg-agent-info
12 fi
13 ================================
14
15 But when I emerged kgpg I got this error:
16 ================================
17 !!! 'ParseError: Invalid token 'test' (not '='):
18 /etc/env.d/90gpg-agent: line 1 in /etc/env.d/90gpg-agent'
19 ================================
20
21 Can you please help me correct the above script, I'm not sure
22 what's wrong with it.
23 --
24 Regards,
25 Mick

Replies

Subject Author
Re: [gentoo-user] Starting up gpg-agent script Neil Bothwick <neil@××××××××××.uk>