aboutsummaryrefslogtreecommitdiff
path: root/lib/subcommands/sync.bash
diff options
context:
space:
mode:
Diffstat (limited to 'lib/subcommands/sync.bash')
-rw-r--r--lib/subcommands/sync.bash6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/subcommands/sync.bash b/lib/subcommands/sync.bash
index 0ec2ffc..4c193e1 100644
--- a/lib/subcommands/sync.bash
+++ b/lib/subcommands/sync.bash
@@ -15,6 +15,11 @@ subcommand()
return
fi
+ notice "bashtard/sync" "Syncing $BASHTARD_ETCDIR"
+ pushd -- "$BASHTARD_ETCDIR"
+ git pull origin master
+ popd
+
# Otherwise, do a full sync
notice "bashtard/sync" "Syncing remote playbooks"
@@ -24,6 +29,7 @@ subcommand()
pushd -- "$BASHTARD_ETCDIR/playbooks.d/$playbook" \
|| return 2
git pull origin "$branch"
+ popd
done < "$BASHTARD_ETCDIR/playbooks.d/remotes"
# Run a sync for each registered playbook for this host