You might sometimes encounter the following error while sourcing the
tool:
$ source /opt/pkg/petalinux/settings.sh
PetaLinux environment set to /opt/pkg/autolist'
bash: /opt/pkg/autolist/tools/common/petalinux//utils/petalinux-env-check: No such file or directory
To resolve the issue, clean up .bashrc by removing the environment variables.