diff --git a/setup_and_build_demos_debian.sh b/setup_and_build_demos_debian.sh index 9645286..9535e16 100755 --- a/setup_and_build_demos_debian.sh +++ b/setup_and_build_demos_debian.sh @@ -7,6 +7,16 @@ sudo apt install libopenal-dev cd .. +# Define the required folder name +REQUIRED_NAME="lib" +# Get the current folder name +CURRENT_NAME=$(basename "$PWD") +# Check if the current folder name matches the required name +if [[ "$CURRENT_NAME" != "$REQUIRED_NAME" ]]; then + echo -e "${YELLOW}Warning:${RESET} You are not in the correct folder. It is highly recommended that you check out the 8Beat repo in a folder named '$REQUIRED_NAME'. The demos will run fine but other repos might expect to find it there." + # exit 1 +fi + ./"${REPO_DIR}"/fetch-dependencies.py "${REPO_DIR}"/dependencies cd "${REPO_DIR}/${BUILD_DIR}"