diff --git a/README.md b/README.md index 88f053f..3051619 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,12 @@ curl -fsSL https://codeberg.org/reflect/install/raw/branch/master/install.sh | b # Arguments You can pass optional named arguments to this script for headless installation of Reflect. +## `--install` - Don't install, only configure Reflect +```sh +./install.sh --install=n +``` +Pass `--install=n` to prevent download and installation of the Reflect git submodule. Use this option if you're version controlling Reflect from your project repository. + ## `--overwrite` - Overwrite existing configuration files ```sh ./install.sh --example=n 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#*=}" ;;