varigit / meta-variscite-fslc

Variscite BSP layer for FSL community BSP
20 stars 47 forks source link

Add check for existing "build_wayland" directory. #35

Closed nitz closed 2 years ago

nitz commented 2 years ago

The documentation mentions that the non-X Wayland is a supported distro. As such, a user may assume to use the directory name build_wayland rather than build_xwayland, like it is used in the create bootable SD card section. If the user had used build_wayland, the script will fail to find the build directory and fail when it attempts to write the image to the card.

This patch adds a check looking first for an existing build_xwayland directory, then falling back to build_wayland if it doesn't exist. If none exist, instead an error is emitted and the script exits, so the user better knows where the error came from.