On 1 jan 2012, at 12:43, Alex (via GPGTools) wrote:
> Based on the installation script[1] it *should* end up in
> /Library/Mail/Bundles if there is already such a folder. Any idea (while
> looking at your system and the script) why it hasn't?
Only if the Directory exists _and_ GPGMail exists there:
tempdir="/private/tmp/GPGMail_Installation"
sysdir="/Library/Mail/Bundles/"
netdir="/Network/Library/Mail/Bundles/"
homedir="$HOME/Library/Mail/Bundles/"
bundle="GPGMail.mailbundle";
################################################################################
# determine where to install the bundle to #####################################
if ( test -e "$netdir/$bundle" ) then
_target="$netdir";
elif ( test -e "$sysdir/$bundle" ) then
_target="$sysdir";
else
_target="$homedir";
fi
Note that the tests are in order:
Does /Network/Library/Mail/Bundles/GPGMail.mailbundle exist?
Does /Library/Mail/Bundles/GPGMail.mailbundle exist?
etc...
I think the goal should be instead to test whether the directories $netdir,
$sysdir etc exist, which imply tests should be:
if ( test -d "$netdir" ) then
_target="$netdir";
elif ( test -d "$sysdir" ) then
_target="$sysdir";
else
_target="$homedir";
fi
Patrik
_______________________________________________
gpgtools-users mailing list
[email protected]
FAQ: http://www.gpgtools.org/faq.html
Changes: http://lists.gpgtools.org/mailman/listinfo/gpgtools-users
Unsubscribe:
http://lists.gpgtools.org/mailman/options/gpgtools-users/[email protected]?unsub=Unsubscribe&unsubconfirm=1
This email sent to: [email protected]