From c69ed732aec1a69700e28d7db45625ca95e2801f Mon Sep 17 00:00:00 2001 From: Rasmus Anthin Date: Sun, 15 Dec 2024 03:39:15 +0100 Subject: [PATCH] setup_and_build_demos_debian.sh: * Added the same folder check here as well. --- setup_and_build_demos_debian.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) 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}"