[clean] macos install

This commit is contained in:
jscampucci 2024-10-11 10:00:25 +02:00
parent f8a8f64a14
commit 043e8ac1fa
1 changed files with 30 additions and 4 deletions

View File

@ -1,5 +1,31 @@
#!/bin/sh
#!/bin/bash
# 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