aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-10-22 23:08:45 -0200
committerSilvio Rhatto <rhatto@riseup.net>2013-10-22 23:08:45 -0200
commit93670f33c76983846686916c84e13258cfcf37fe (patch)
tree24d10da6323f7744a65787978a3b2e2564dd826e
parente59ab973633179150f63441fc41b5f504a302c9f (diff)
downloadhydra-93670f33c76983846686916c84e13258cfcf37fe.tar.gz
hydra-93670f33c76983846686916c84e13258cfcf37fe.tar.bz2
Initializing keyring on hydra sync
-rwxr-xr-xshare/hydra/sync6
1 files changed, 6 insertions, 0 deletions
diff --git a/share/hydra/sync b/share/hydra/sync
index 1c3724d..6fd8d19 100755
--- a/share/hydra/sync
+++ b/share/hydra/sync
@@ -36,6 +36,12 @@ for repository in $REPOSITORIES; do
if [ ! -d "$HYDRA_FOLDER/$repository/.git" ]; then
git clone $PRIVATE_REPOS/$repository $HYDRA_FOLDER/$repository
+
+ # TODO: check if keyringer is installed
+ if [ ! -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