From f504acb391c7a49a7e6c7717161ae97782b89c77 Mon Sep 17 00:00:00 2001 From: Patrick Spek Date: Wed, 20 Apr 2022 12:05:13 +0200 Subject: Pull latest changes on etcdir --- lib/subcommands/sync.bash | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- cgit v1.1