]> gitweb.fluxo.info Git - hydra.git/commitdiff
Hydra sync: fix keyringer routines
authorSilvio Rhatto <rhatto@riseup.net>
Wed, 23 Oct 2013 01:15:01 +0000 (23:15 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Wed, 23 Oct 2013 01:15:01 +0000 (23:15 -0200)
share/hydra/sync

index 873694e5bbc94600697c5bb448c3a59497442ffe..ea191461e87e7ba3f5ffcbdefd6a3006231e7bfc 100755 (executable)
@@ -41,18 +41,20 @@ for repository in $REPOSITORIES; do
 
   if [ ! -d "$HYDRA_FOLDER/$repository/.git" ]; then
     git clone $PRIVATE_REPOS/$repository $HYDRA_FOLDER/$repository
-
-    if ! which keyringer &> /dev/null; then
-      echo "Please install keyringer for a full hydra experience."
-    elif [ ! -e "$HOME/.keyringer/$HYDRA" ]; then
-      echo "Initializing keyring for $HYDRA..."
-      keyringer $HYDRA init $HYDRA_FOLDER/$repository
-    fi
   fi
 
   if [ -d "$HYDRA_FOLDER/$repository/.git" ]; then
     echo "Syncing $repository..."
 
+    if [ "$repository" == "keyringer" ]; then
+      if ! which keyringer &> /dev/null; then
+        echo "Please install keyringer for a full hydra experience."
+      elif [ ! -e "$HOME/.keyringer/$HYDRA" ]; then
+        echo "Initializing keyring for $HYDRA..."
+        keyringer $HYDRA init $HYDRA_FOLDER/$repository
+      fi
+    fi
+
     if [ "$repository" == "bootless" ]; then
       ( cd $HYDRA_FOLDER/$repository && git annex sync )
     else