diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2013-10-22 23:15:01 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2013-10-22 23:15:01 -0200 |
commit | 084644fd8088e0a2f1c618ee838f3d2447a5e7cb (patch) | |
tree | 4c84d1a3687882d198d3fc2145d1d4b533fb125d | |
parent | 21eefa012f38be487393ae602a41bcd64b018d34 (diff) | |
download | hydra-084644fd8088e0a2f1c618ee838f3d2447a5e7cb.tar.gz hydra-084644fd8088e0a2f1c618ee838f3d2447a5e7cb.tar.bz2 |
Hydra sync: fix keyringer routines
-rwxr-xr-x | share/hydra/sync | 16 |
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 |