diff --git a/matches.sh b/matches.sh index 2d61e49..178b95e 100644 --- a/matches.sh +++ b/matches.sh @@ -1,7 +1,7 @@ #!/bin/bash ## matches.sh -## version 1.0 +## version 1.01 ## Matches is based on a two player game from the trenches of World War One. ## Author: Ze'ev Schurmann @@ -129,16 +129,20 @@ function drawFlame { function burnMatches { if [[ $1 = "A" ]]; then local q=${#setA[@]} - local setQ=($(echo ${setA[@]})) + #local setQ=($(echo ${setA[@]})) + local setQ=( "${setA[@]}" ) elif [[ $1 = "B" ]]; then local q=${#setB[@]} - local setQ=($(echo ${setB[@]})) + #local setQ=($(echo ${setB[@]})) + local setQ=( "${setB[@]}" ) elif [[ $1 = "C" ]]; then local q=${#setC[@]} - local setQ=($(echo ${setC[@]})) + #local setQ=($(echo ${setC[@]})) + local setQ=( "${setC[@]}" ) elif [[ $1 = "D" ]]; then local q=${#setD[@]} - local setQ=($(echo ${setD[@]})) + #local setQ=($(echo ${setD[@]})) + local setQ=( "${setD[@]}" ) fi local played="false" while [[ ${played} == "false" ]]; do