Added conditional check to load config and theme only if argument is not "init".
This commit is contained in:
parent
dd518d733b
commit
fcf519dd68
2
zrep
2
zrep
@ -817,8 +817,10 @@ function zrep_read_usage() {
|
||||
function main() {
|
||||
|
||||
zrep_main_version_string
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user