A missing empty line at the end of a feature's local template
file will lead to a ParseError error.
This patchset will automatically append a new line
at the end of the feature's local template file when
setting up AGL.
Bug-AGL: SPEC-2563
(cherry picked from commit
416600ed6dfd4462a3d8bea770e5fdf5e074ce2f)
Signed-off-by: Bechir Mghirbi <bechir.mghirbi@grammer.com>
Change-Id: Ica9decdb0bda182de7e25ace4fca6a9f6f7db5ff
echo "#" >>$basefile
[[ -n "$label" ]] && echo "$label" >>$basefile
[[ -f $f ]] && cat $f >>$basefile || true
echo "#" >>$basefile
[[ -n "$label" ]] && echo "$label" >>$basefile
[[ -f $f ]] && cat $f >>$basefile || true
echo "#" >>$basefile
echo "# }" >>$basefile
echo "# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #" >>$basefile
echo "#" >>$basefile
echo "# }" >>$basefile
echo "# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #" >>$basefile