diff options
author | Patrick Spek <p.spek@tyil.nl> | 2023-03-08 08:27:05 +0100 |
---|---|---|
committer | Patrick Spek <p.spek@tyil.nl> | 2023-03-08 08:27:05 +0100 |
commit | e777cbc1cb10da93cb257305b05a6bba54307813 (patch) | |
tree | fd22f06abbcd5ec920c6ef30b56261c62fd00456 /lib/subcommands/sync.bash | |
parent | 0ba83d1c8aa8e7806c381916af4628305fcc64f2 (diff) |
Change remotes to simply be git submodules
Diffstat (limited to 'lib/subcommands/sync.bash')
-rw-r--r-- | lib/subcommands/sync.bash | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/lib/subcommands/sync.bash b/lib/subcommands/sync.bash index e2eac77..0413ce4 100644 --- a/lib/subcommands/sync.bash +++ b/lib/subcommands/sync.bash @@ -18,20 +18,9 @@ subcommand() notice "bashtard/sync" "Syncing $BASHTARD_ETCDIR" pushd -- "$BASHTARD_ETCDIR" > /dev/null || return 4 git pull origin master || return 4 + git submodule update --recursive --remote || return 4 popd > /dev/null || return 4 - # Otherwise, do a full sync - notice "bashtard/sync" "Syncing remote playbooks" - - # Update all playbook sources - while read -r playbook _ branch - do - pushd -- "$BASHTARD_ETCDIR/playbooks.d/$playbook" > /dev/null \ - || return 2 - git pull origin "$branch" - popd > /dev/null || return 2 - done < "$BASHTARD_ETCDIR/playbooks.d/remotes" - # Run a sync for each registered playbook for this host while read -r playbook do |