Ignore:
Timestamp:
04/13/2006 07:48:56 PM (18 years ago)
Author:
George Boudreau <georgeb@…>
Branches:
experimental
Children:
615e37d
Parents:
760c2f1
Message:

save config param KEYMAP before manipulation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/func_validate_configs.sh

    r760c2f1 r7a755b9  
    9999  local config_param
    100100  local validation_str
    101 
     101  local save_param
     102 
    102103  write_error_and_die() {
    103104    echo -e "\n${DD_BORDER}"
     
    237238               echo
    238239               ;;
    239       KEYMAP)  [[ ! "${!config_param}" = "none" ]] &&
     240      KEYMAP)  save_param=${KEYMAP}
     241               [[ ! "${!config_param}" = "none" ]] &&
    240242                  KEYMAP="/usr/share/kbd/keymaps/${KEYMAP}" &&
    241243                  validate_file -z -e -s
     244               KEYMAP=${save_param}
    242245               ;;
    243246    esac
Note: See TracChangeset for help on using the changeset viewer.