feat: add optional install named argument

This commit is contained in:
Victor Westerlund 2025-08-07 10:17:10 +02:00
parent 2e7ccdbe25
commit 7ba7739b70
Signed by: vlw
GPG key ID: D0AD730E1057DFC6

View file

@ -7,6 +7,7 @@ dir=""
host="" host=""
user="" user=""
seed="" seed=""
install=""
password="" password=""
seed_host="" seed_host=""
seed_user="" seed_user=""
@ -198,7 +199,12 @@ main() {
cwd=$(pwd) cwd=$(pwd)
check_sys_depend check_sys_depend
# Download and install the Reflect repository
if [[ "$install" != "n" ]]; then
install_reflect install_reflect
fi
configure_reflect configure_reflect
echo echo
@ -232,6 +238,10 @@ for arg in "$@"; do
seed="${arg#*=}" seed="${arg#*=}"
;; ;;
--install=*)
install="${arg#*=}"
;;
--seed-host=*) --seed-host=*)
seed_host="${arg#*=}" seed_host="${arg#*=}"
;; ;;