From 1bde7b0be6462b1cf270dfe92126d6cf9168499a Mon Sep 17 00:00:00 2001 From: BlockArchitech Date: Thu, 11 Aug 2022 13:14:48 -0400 Subject: [PATCH] fix: install.sh might break python environments I should probably also fix my git because I hate making commits on GitHub. Signed-off-by: BlockArchitech --- install.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index f85c80b..b8838e9 100644 --- a/install.sh +++ b/install.sh @@ -62,7 +62,13 @@ function install_macos(){ fi # Install the required packages echo "Installing required Packages" - brew install python@3.10 tcl-tk python-tk + if [! commad --version python3 &> /dev/null ]; then + echo "Installing python3" + brew install python@3.10 + else + echo "python3 already installed." + fi + brew install tcl-tk python-tk } # Function to install for arch (and other forks like manjaro)