Skip to content

Commit

Permalink
setup_and_build_demos_debian.sh:
Browse files Browse the repository at this point in the history
* Added the same folder check here as well.
  • Loading branch information
razterizer committed Dec 15, 2024
1 parent 91fb5e4 commit c69ed73
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions setup_and_build_demos_debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit c69ed73

Please sign in to comment.