Refactor zrep_load_config function in zrep script:
- Indent zrep_init call properly. - Add else block to handle setup abort. - Provide feedback message for setup abortion.
This commit is contained in:
parent
7243ae4235
commit
dd518d733b
3
zrep
3
zrep
@ -371,6 +371,9 @@ function zrep_load_config() {
|
|||||||
read "response?Are you ready to set up zrep? (y/n): "
|
read "response?Are you ready to set up zrep? (y/n): "
|
||||||
if [[ "${response}" =~ ^[Yy]$ ]]; then
|
if [[ "${response}" =~ ^[Yy]$ ]]; then
|
||||||
zrep_init
|
zrep_init
|
||||||
|
else
|
||||||
|
echo "Setup aborted. Try again later."
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
# echo "${ZREP_CONFIG} not found."
|
# echo "${ZREP_CONFIG} not found."
|
||||||
# Ask the user if they want to run 'zrep init'
|
# Ask the user if they want to run 'zrep init'
|
||||||
|
Loading…
Reference in New Issue
Block a user