When using the petalinux-build tool, the build process ends with messages similar to the following:
This issue is primarily seen in Ubuntu and Ubuntu-like distributions.
Ubuntu uses the package dash as its default shell.
Dash does not properly process the shell commands issued by PetaLinux.
This issue can be worked around by switching the default shell in Ubuntu from dash to bash.
Canonical has instruction on how to switch the shell from Dash to Bash on the Ubuntu wiki here: https://wiki.ubuntu.com/DashAsBinSh
Generally you can issue the following command at a terminal:
sudo dpkg-reconfigure dash
Select <No> in the interface and press <Enter>.
For the change to take effect, be sure to open a new terminal window.