jonschipp / ISLET

Isolated, Scalable, & Lightweight Environment for Training
Other
111 stars 18 forks source link

unset sourced variables in config_menu() #54

Closed jonschipp closed 9 years ago

jonschipp commented 9 years ago

Here, variables present in one configuration that are not in a configuration loaded after will be loaded unintentionally in the next configuration.

for config in *.conf
  do
    . "$config"
    if [[ "$VISIBLE" = "yes" || "$ENABLE" = "yes" ]]; then
      printf '\t\t\t%-30s %-7s %-30s\n' "${WF}$config${N}" "|" "${U}$DESCRIPTION${N}"
      LIST+=("$config")
    fi
    unset BANNER VISIBLE ENABLE config
  done
jonschipp commented 9 years ago

Complete https://github.com/jonschipp/ISLET/commit/4f9043eacadb5301d3957edd82f1586fbc740ccd