mirror of
https://codeberg.org/reflect/install.git
synced 2025-09-14 10:13:42 +02:00
feat: add optional install named argument
This commit is contained in:
parent
2e7ccdbe25
commit
7ba7739b70
1 changed files with 11 additions and 1 deletions
10
install.sh
10
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
|
||||
|
||||
# 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#*=}"
|
||||
;;
|
||||
|
|
Loading…
Add table
Reference in a new issue