Email thread as background:
I'm encountering an issue that seems to be caused by the env $GPT not defined. Has anyone seem this before? Thanks
~/trunk/src/scripts $ sh image_to_vm.sh --from ../build/images/samus/R57-9083.0.2016_12_13_1211-a1/ --board=samus
/mnt/host/source/src/scripts/build_library/disk_layout_util.sh: line 310: syntax error near unexpected token `<'
Where the line 310 of disk_layout_util.sh is:
307 for x in "${unpack}" "${pack}" "${mount}" "${umount}"; do
308 echo "esac" >> "${x}"
309 done
310 done < <(${GPT} show -q "${image}")
...... (10 minutes later) ......
Never mind. I forgot to add an "=" in my command line
sh image_to_vm.sh --from=../build/images/samus/R57-9083.0.2016_12_13_1211-a1/ --board=samus
Per vapier@: bad command line options should get rejected early rather than leading to weird errors like this.
Comment 1 by zalcorn@chromium.org
, Dec 26 2017