Skip to content

Commit

Permalink
lib-setup: get_prefs(): don't warn when nobackup is set to true
Browse files Browse the repository at this point in the history
  • Loading branch information
friendly-bits committed Oct 10, 2024
1 parent 7056553 commit ca4769d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/geoip-shell-lib-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -439,8 +439,8 @@ get_prefs() {
eval "par_val=\"\$$par_name\""
eval "par_val_arg=\"\${${par_name}_arg}\""
case "$par_val" in
true) [ "$in_install" ] || [ "$first_setup" ] && [ "$par_val_arg" != true ] &&
echolog -warn "option '$par_name' is set to 'true' in config." ;;
true) { [ "$in_install" ] || [ "$first_setup" ]; } && [ "$par_val_arg" != true ] && [ "$par_name" != nobackup ] &&
echolog -warn "option '$par_name' is set to 'true' in config." ;;
false) ;;
*) eval "def_val=\"\$${par_name}_def\""
[ ! "$first_setup" ] && [ ! "$in_install" ] &&
Expand Down

0 comments on commit ca4769d

Please sign in to comment.