diff options
Diffstat (limited to 'lib/subcommands/init.bash')
-rw-r--r-- | lib/subcommands/init.bash | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/lib/subcommands/init.bash b/lib/subcommands/init.bash index 46497f5..6f0719e 100644 --- a/lib/subcommands/init.bash +++ b/lib/subcommands/init.bash @@ -35,7 +35,6 @@ init_local() "$BASHTARD_ETCDIR/secrets" "$BASHTARD_ETCDIR/hosts.d/${BASHTARD_PLATFORM[fqdn]}" "$BASHTARD_ETCDIR/os.d/${BASHTARD_PLATFORM[key]}" - "$BASHTARD_ETCDIR/playbooks.d/remotes" ) for dir in "${dirs[@]}" @@ -62,7 +61,7 @@ init_remote() local remote="$1" ; shift notice "init" "Cloning $remote to $BASHTARD_ETCDIR" - git clone "$remote" "$BASHTARD_ETCDIR" + git clone --recurse-submodules "$remote" "$BASHTARD_ETCDIR" local files=( "$BASHTARD_ETCDIR/hosts.d/${BASHTARD_PLATFORM[fqdn]}" @@ -77,12 +76,4 @@ init_remote() notice "bashtard/init" "Creating $file" touch -- "$file" done - - while read -r playbook url _ - do - notice "bashtard/init" "Cloning $playbook from $url" - git clone "$url" "$BASHTARD_ETCDIR/playbooks.d/$playbook" - - # TODO: Clone appropriate branch - done < "$BASHTARD_ETCDIR/playbooks.d/remotes" } |