From fcf519dd684de0474575dfda57e3c2007c387a4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig-=C3=98rjan=20Smelror?= Date: Sat, 16 Mar 2024 00:14:36 +0100 Subject: [PATCH] Added conditional check to load config and theme only if argument is not "init". --- zrep | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/zrep b/zrep index 0111be3..1adf721 100755 --- a/zrep +++ b/zrep @@ -817,8 +817,10 @@ function zrep_read_usage() { function main() { zrep_main_version_string - zrep_load_config ${1} - zrep_load_theme ${config[global_theme]} + if [[ ${1} != "init" ]]; then + zrep_load_config ${1} + zrep_load_theme ${config[global_theme]} + fi # Check if the second argument is "help" and the first argument is not empty if [[ "${2}" == "help" && -n "${1}" ]]; then