From 7ba7739b706388c83e203b7a530538c6fbe1dc12 Mon Sep 17 00:00:00 2001 From: Victor Westerlund Date: Thu, 7 Aug 2025 10:17:10 +0200 Subject: [PATCH] feat: add optional install named argument --- install.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 11f7b95..1d449e6 100755 --- a/install.sh +++ b/install.sh @@ -7,6 +7,7 @@ dir="" host="" user="" seed="" +install="" password="" seed_host="" seed_user="" @@ -198,7 +199,12 @@ main() { cwd=$(pwd) check_sys_depend - install_reflect + + # Download and install the Reflect repository + if [[ "$install" != "n" ]]; then + install_reflect + fi + configure_reflect echo @@ -232,6 +238,10 @@ for arg in "$@"; do seed="${arg#*=}" ;; + --install=*) + install="${arg#*=}" + ;; + --seed-host=*) seed_host="${arg#*=}" ;;