From dd518d733b99ebe74de61cfe0fbaf0eb09f48adf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig-=C3=98rjan=20Smelror?= Date: Sat, 16 Mar 2024 00:11:00 +0100 Subject: [PATCH] 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. --- zrep | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/zrep b/zrep index 80f349c..0111be3 100755 --- a/zrep +++ b/zrep @@ -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'