diff options
author | Patrick Spek <p.spek@tyil.nl> | 2022-04-17 23:03:29 +0200 |
---|---|---|
committer | Patrick Spek <p.spek@tyil.nl> | 2022-04-17 23:03:29 +0200 |
commit | 9376473a6ff9ca276aa4650a7103d631005affd9 (patch) | |
tree | d88b790ce5747c87a4bdc67c474fd995ae2d5d05 /lib/subcommands | |
parent | 31ff3d4873dfa041f56588451bc2bc91702573cd (diff) |
Fix bootstrap with a remote
Diffstat (limited to 'lib/subcommands')
-rw-r--r-- | lib/subcommands/bootstrap.bash | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/subcommands/bootstrap.bash b/lib/subcommands/bootstrap.bash index a457a2f..5a0f4ae 100644 --- a/lib/subcommands/bootstrap.bash +++ b/lib/subcommands/bootstrap.bash @@ -15,7 +15,7 @@ subcommand() return fi - bootstrap_remote "$@" + bootstrap_remote "$remote" } bootstrap_local() @@ -52,8 +52,10 @@ bootstrap_local() bootstrap_remote() { - notice "bootstrap" "Cloning $1 to $BASHTARD_ETCDIR" - git clone "$1" "$BASHTARD_ETCDIR" + local remote="$1" ; shift + + notice "bootstrap" "Cloning $remote to $BASHTARD_ETCDIR" + git clone "$remote" "$BASHTARD_ETCDIR" local files=( "$BASHTARD_ETCDIR/hosts.d/${BASHTARD_PLATFORM[fqdn]}" |