From 9376473a6ff9ca276aa4650a7103d631005affd9 Mon Sep 17 00:00:00 2001 From: Patrick Spek Date: Sun, 17 Apr 2022 23:03:29 +0200 Subject: Fix bootstrap with a remote --- lib/subcommands/bootstrap.bash | 8 +++++--- 1 file 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]}" -- cgit v1.1