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:
Stig-Ørjan Smelror 2024-03-16 00:11:00 +01:00
parent 7243ae4235
commit dd518d733b

5
zrep
View File

@ -370,7 +370,10 @@ function zrep_load_config() {
echo "running me."
read "response?Are you ready to set up zrep? (y/n): "
if [[ "${response}" =~ ^[Yy]$ ]]; then
zrep_init
zrep_init
else
echo "Setup aborted. Try again later."
fi
else
# echo "${ZREP_CONFIG} not found."
# Ask the user if they want to run 'zrep init'