From cf716a879a23852a22646760873cba3cf6846218 Mon Sep 17 00:00:00 2001 From: klein panic Date: Wed, 2 Oct 2024 00:05:32 -0400 Subject: [PATCH] fixed README, and fixed install script to include an assets dir --- install.sh | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 4e1f015..502d9b1 100755 --- a/install.sh +++ b/install.sh @@ -17,6 +17,10 @@ check_venv() { fi elif [[ "$OSTYPE" == "darwin"* ]]; then # MacOS + if ! command -v brew &> /dev/null; then + echo "Homebrew not found. Please install Homebrew from https://brew.sh/" + exit 1 + fi brew install python3 elif [[ "$OSTYPE" == "cygwin" ]] || [[ "$OSTYPE" == "msys" ]]; then # Windows @@ -68,10 +72,21 @@ setup_venv() { deactivate } +# Create assets directory +create_assets_directory() { + if [[ ! -d "assets" ]]; then + echo "Creating 'assets' directory..." + mkdir assets + echo "'assets' directory created." + else + echo "'assets' directory already exists." + fi +} + # Run the checks and setup check_venv check_binaries setup_venv +create_assets_directory echo "Installation completed successfully." -