aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-11-22 12:50:18 -0200
committerSilvio Rhatto <rhatto@riseup.net>2011-11-22 12:50:18 -0200
commit4d5b7821417d853b6a86fc794cc684ecc846ad6a (patch)
tree3a4357e3d42fc8f881bdc24e68bdf378980a7818
parentbf5b13dcf28fd74510d10ada387d4e1c65e2e171 (diff)
downloadkeyringer-4d5b7821417d853b6a86fc794cc684ecc846ad6a.tar.gz
keyringer-4d5b7821417d853b6a86fc794cc684ecc846ad6a.tar.bz2
Guessing a common mistake on init
-rwxr-xr-xkeyringer6
1 files changed, 6 insertions, 0 deletions
diff --git a/keyringer b/keyringer
index d057975..391646a 100755
--- a/keyringer
+++ b/keyringer
@@ -44,6 +44,12 @@ function keyringer_init {
if [ -e "$BASEDIR" ]; then
if [ ! -d "$BASEDIR/keys" ] || [ ! -e "$RECIPIENTS" ]; then
echo "Invalid keyring $BASEDIR: incomplete installation"
+
+ # A common mistake
+ if [ -d "$BASEDIR/../keys" ]; then
+ echo "You might try `cd $BASEDIR/.. && pwd` instead"
+ fi
+
exit 1
fi
else