aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2022-04-20 12:05:13 +0200
committerPatrick Spek <p.spek@tyil.nl>2022-04-20 12:05:13 +0200
commitf504acb391c7a49a7e6c7717161ae97782b89c77 (patch)
tree6a18523b5d41527a677a84df8c8f19d7bc1693ce
parent01c81823b6cfa08b3a9b5f971e28e0b8db0cd89f (diff)
Pull latest changes on etcdir
-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