From 1bde7b0be6462b1cf270dfe92126d6cf9168499a Mon Sep 17 00:00:00 2001 From: BlockArchitech Date: Thu, 11 Aug 2022 13:14:48 -0400 Subject: [PATCH 1/2] 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) From 798799e925193ce914a1e90fbc1a01d1c5af547b Mon Sep 17 00:00:00 2001 From: BlockArchitech Date: Thu, 11 Aug 2022 18:31:13 -0400 Subject: [PATCH 2/2] Update install.sh --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index b8838e9..38c1708 100644 --- a/install.sh +++ b/install.sh @@ -62,7 +62,7 @@ function install_macos(){ fi # Install the required packages echo "Installing required Packages" - if [! commad --version python3 &> /dev/null ]; then + if [! command --version python3 &> /dev/null ]; then echo "Installing python3" brew install python@3.10 else