0xbaha / env-setup

This repository contains a script that can be used to set up an environment for web development and mail server.
https://gh.baha.my.id/env-setup
1 stars 0 forks source link

update setup.sh #16

Closed 0xbaha closed 3 years ago

0xbaha commented 3 years ago

1

https://github.com/ba1x/dev-setup/blob/8b4006b565d45189c68cd4b59d79747fc095bd25/setup.sh#L48

 if [ "$0" == "./$FILE_SETUP" ] && [ "$1" == "" ]; then 

2

https://github.com/ba1x/dev-setup/blob/8b4006b565d45189c68cd4b59d79747fc095bd25/setup.sh#L128

ARR_OPTIONS=(1 2 3 4)
while ! [[ ${ARR_OPTIONS[*]} =~ (^|[[:space:]])"$USER_OPTION"($|[[:space:]]) ]]; do

Reference:

3

https://github.com/ba1x/dev-setup/blob/8b4006b565d45189c68cd4b59d79747fc095bd25/setup.sh#L216-L224

Change this part into a question. So, the user must not create a new account when running the program.

0xbaha commented 3 years ago

solved in d9408cc017db157c0cb9e8e8834cf3bb67596ffd