]> gitweb.fluxo.info Git - keyringer.git/commitdiff
Guessing a common mistake on init
authorSilvio Rhatto <rhatto@riseup.net>
Tue, 22 Nov 2011 14:50:18 +0000 (12:50 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Tue, 22 Nov 2011 14:50:18 +0000 (12:50 -0200)
keyringer

index d057975a482547dee1c0a7dfafef15bc32b5d603..391646a95ee8fa2d40d9eac2972bc062ab3e8f69 100755 (executable)
--- 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