Skip to content

Commit 23f1ecc

Browse files
authored
Fix the --theme-*` command line options (#2360)
1 parent 7eabfa3 commit 23f1ecc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.includes/cmdline.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -860,15 +860,15 @@ run_command() {
860860
--theme-scrollbar | --theme-no-scrollbar) ;&
861861
--theme-lines | --theme-no-lines) ;&
862862
--theme-borders | --theme-no-borders)
863-
if [[ -z ${ConfigVar-} || ${ConfigValue-} ]]; then
863+
if [[ -z ${ConfigVar-} || -z ${ConfigValue-} ]]; then
864864
fatal \
865865
"The configuration variable and value are not defined for command '${C["UserCommand"]-}${Command}${NC-}${NC-}'."
866866
fi
867867
if [[ -n ${Notice-} ]]; then
868868
notice \
869869
"${Notice}"
870870
fi
871-
run_script 'config_set' "${ConfigVar}" "${ConfigValue}" "${MENU_INI_FILE}"
871+
run_script 'config_set' "${ConfigVar}" "${ConfigValue}"
872872
result=$?
873873
if use_dialog_box; then
874874
run_script 'menu_dialog_example' "${Title}" "${CURRENT_COMMANDLINE}"

0 commit comments

Comments
 (0)