diff --git a/misc/create_lxc.sh b/misc/create_lxc.sh index 88820aa8..30121f7c 100644 --- a/misc/create_lxc.sh +++ b/misc/create_lxc.sh @@ -113,7 +113,8 @@ function select_storage() { if [[ "$LINE" =~ ^(dir|lvm|lvmthin|zfspool|.*):[[:space:]]*(.+)$ ]]; then CURRENT_STORAGE="${BASH_REMATCH[2]}" elif [[ "$LINE" =~ ^[[:space:]]*content[[:space:]]*=[[:space:]]*(.+)$ ]]; then - [[ ",${BASH_REMATCH[1]}," =~ ,$CONTENT, ]] && VALID_STORAGES+=("$CURRENT_STORAGE") + local CONTENTS="${BASH_REMATCH[1]}" + [[ ",${CONTENTS}," =~ ,$CONTENT, ]] && VALID_STORAGES+=("$CURRENT_STORAGE") fi done