summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xshare/hydra/sync16
1 files changed, 9 insertions, 7 deletions
diff --git a/share/hydra/sync b/share/hydra/sync
index 873694e..ea19146 100755
--- a/share/hydra/sync
+++ b/share/hydra/sync
@@ -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