summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-10-22 23:15:01 -0200
committerSilvio Rhatto <rhatto@riseup.net>2013-10-22 23:15:01 -0200
commit084644fd8088e0a2f1c618ee838f3d2447a5e7cb (patch)
tree4c84d1a3687882d198d3fc2145d1d4b533fb125d /share
parent21eefa012f38be487393ae602a41bcd64b018d34 (diff)
downloadhydra-084644fd8088e0a2f1c618ee838f3d2447a5e7cb.tar.gz
hydra-084644fd8088e0a2f1c618ee838f3d2447a5e7cb.tar.bz2
Hydra sync: fix keyringer routines
Diffstat (limited to 'share')
-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