diff --git a/macos/notube-macos-install.sh b/macos/notube-macos-install.sh index f083c1b..278603a 100644 --- a/macos/notube-macos-install.sh +++ b/macos/notube-macos-install.sh @@ -1,5 +1,31 @@ -#!/bin/sh +#!/bin/bash -/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" -brew install ffmpeg -brew install yt-dlp \ No newline at end of file +# Check if Homebrew is installed +if ! command -v brew &> /dev/null +then + echo "Homebrew not found. Installing Homebrew..." + /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" +else + echo "Homebrew is already installed." +fi + +echo "export PATH=/opt/homebrew/bin:$PATH" >> ~/.bash_profile && source ~/.bash_profile + + +# Install FFmpeg +if ! command -v ffmpeg &> /dev/null +then + echo "FFmpeg not found. Installing FFmpeg..." + brew install ffmpeg +else + echo "FFmpeg is already installed." +fi + +# Install yt-dlp +if ! command -v yt-dlp &> /dev/null +then + echo "yt-dlp not found. Installing yt-dlp..." + brew install yt-dlp +else + echo "yt-dlp is already installed." +fi \ No newline at end of file