Browse Source

When an option is set but not defined, just don't set the value

master
mid-kid 9 years ago
parent
commit
cbe501ec37
  1. 10
      astronaut/astronaut

10
astronaut/astronaut

@ -163,9 +163,13 @@ option() {
local enabled=false local enabled=false
local opt local opt
local IFS=','; for opt in $options; do local IFS=','; for option in $options; do
local option="$(echo "$opt" | cut -d '=' -f 1)" case "$option" in
local value="$(echo "$opt" | cut -d '=' -f 2)" *=*)
local value="$(echo "$option" | cut -d '=' -f 2)"
local option="$(echo "$option" | cut -d '=' -f 1)"
;;
esac
if [ "$option" = "$check" ]; then if [ "$option" = "$check" ]; then
local enabled=true local enabled=true

Loading…
Cancel
Save