cros_show_stacks: Fix bash looping.

cros_show_stacks was looping over bash space-separated strings as though
they were arrays, which resulted in the code iterating only once with
the entire string as input.

Instead, properly construct the array so that the loop works.

BUG=b:193386105
TEST=./cros_show_stacks --remote=localhost --ssh_port=2222
TEST=./cros_show_stacks missived.20210720.094829.77846.23005.dmp \
     --board=jacuzzi

Change-Id: I874f9e57ee11c86c1ab9c9edb164f1ad6e5869d8
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosutils/+/3039260
Tested-by: Miriam Zimmerman <mutexlox@chromium.org>
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Commit-Queue: Miriam Zimmerman <mutexlox@chromium.org>
1 file changed