On Sun, 14 Mar 2010 20:23:40 +0000, Mick wrote:

> I am trying this script in /etc/env.d/90gpg-agent:
> ================================
> if test -f $HOME/.gpg-agent-info && 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
>     eval `/usr/bin/gpg-agent --daemon`
>     echo $GPG_AGENT_INFO >$HOME/.gpg-agent-info
> fi
> ================================
> 
> But when I emerged kgpg I got this error:
> ================================
> !!! 'ParseError: Invalid token 'test' (not '='): 
> /etc/env.d/90gpg-agent: line 1 in /etc/env.d/90gpg-agent'
> ================================
> 
> Can you please help me correct the above script, I'm not sure 
> what's wrong with it.

env-update doesn't evaluate scripts. It expects only variable assignments.

You mention kgpg, are you using KDE? If so, it takes care of this
automatically, you only need to uncomment the relevant lines in the agent
startup and shutdown scripts in /etc/kde. Otherwise, put the script in a
file in /etc/profile.d.


-- 
Neil Bothwick

Top Oxymorons Number 17: Clearly misunderstood

Attachment: signature.asc
Description: PGP signature

Reply via email to