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
5
zrep
5
zrep
@ -370,7 +370,10 @@ function zrep_load_config() {
|
|||||||
echo "running me."
|
echo "running me."
|
||||||
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