From 7b555f40448c300bbbea09eea8bc5ba553c9880a Mon Sep 17 00:00:00 2001 From: micziz Date: Sun, 12 Jun 2022 14:07:37 +0200 Subject: [PATCH] Fix --- install.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index cbdbe87..1edbf1c 100644 --- a/install.sh +++ b/install.sh @@ -43,6 +43,11 @@ done function install_macos(){ if [ ! command -v brew &> /dev/null ]; then NONINTERACTIVE=1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)" + if [[ uname -m == "x86_64" ]]; then + echo "export PATH=/usr/local/bin:$PATH" >> ~/.bash_profile && source ~/.bash_profile + else + echo "export PATH=/opt/homebrew/bin:$PATH" >> ~/.bash_profile && source ~/.bash_profile + fi else echo "Homebrew is already installed" fi @@ -139,8 +144,8 @@ function install_python_dep(){ function install_playwright(){ echo "Installing playwright" cd RedditVideoMakerBot - playwright install - playwright install-deps + python3 -m playwright install + python3 -m playwright install-deps } install_deps(){