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.
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 thanbuild_xwayland
, like it is used in the create bootable SD card section. If the user had usedbuild_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 tobuild_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.