diff options
-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]}" |