Add support for MacOS Homebrew

This commit is contained in:
q3aql 2023-11-01 20:54:07 +01:00
parent be3ebf6f02
commit 7699d01b0c
19 changed files with 25 additions and 25 deletions

View File

@ -51,7 +51,7 @@ fi
# Setting the correct resolution for the video file
# Sintaxis: set_resolution <resolution> <file>
function set_resolution() {
check_bc_app_directories="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin /home/linuxbrew/.linuxbrew/bin"
check_bc_app_directories="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin $(brew --prefix)/bin"
set_rel="${1}"
input_video_file="${2}"
bc_found="1"
@ -134,7 +134,7 @@ else
fi
# Check if ffmpeg is installed
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin /home/linuxbrew/.linuxbrew/bin"
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin $(brew --prefix)/bin"
dependencies="ffmpeg grep sed grep cut head tail tr cat bc"
dependencies_found=""
dependencies_not_found=""

View File

@ -51,7 +51,7 @@ fi
# Setting the correct resolution for the video file
# Sintaxis: set_resolution <resolution> <file>
function set_resolution() {
check_bc_app_directories="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin /home/linuxbrew/.linuxbrew/bin"
check_bc_app_directories="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin $(brew --prefix)/bin"
set_rel="${1}"
input_video_file="${2}"
bc_found="1"
@ -134,7 +134,7 @@ else
fi
# Check if ffmpeg is installed
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin /home/linuxbrew/.linuxbrew/bin"
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin $(brew --prefix)/bin"
dependencies="ffmpeg grep sed grep cut head tail tr cat bc"
dependencies_found=""
dependencies_not_found=""

View File

@ -21,7 +21,7 @@ if [ -f "/usr/bin/cygwin-alias.sh" ] ; then
fi
# Check if ffmpeg is installed
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin /home/linuxbrew/.linuxbrew/bin"
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin $(brew --prefix)/bin"
dependencies="ffmpeg grep find grep cut head tail cat"
dependencies_found=""
dependencies_not_found=""

View File

@ -54,7 +54,7 @@ fi
# Setting the correct resolution for the video file
# Sintaxis: set_resolution <resolution> <file>
function set_resolution() {
check_bc_app_directories="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin /home/linuxbrew/.linuxbrew/bin"
check_bc_app_directories="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin $(brew --prefix)/bin"
set_rel="${1}"
input_video_file="${2}"
bc_found="1"
@ -142,7 +142,7 @@ else
fi
# Check if ffmpeg is installed
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin /home/linuxbrew/.linuxbrew/bin"
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin $(brew --prefix)/bin"
dependencies="ffmpeg grep sed grep cut head tail tr cat bc"
dependencies_found=""
dependencies_not_found=""

View File

@ -54,7 +54,7 @@ if [ -f "/usr/bin/cygwin-alias.sh" ] ; then
fi
# Check if ffmpeg is installed
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin /home/linuxbrew/.linuxbrew/bin"
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin $(brew --prefix)/bin"
dependencies="ffmpeg grep sed grep cut head tail tr cat"
dependencies_found=""
dependencies_not_found=""

View File

@ -43,7 +43,7 @@ if [ -f "/usr/bin/cygwin-alias.sh" ] ; then
fi
# Check if ffmpeg is installed
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin /home/linuxbrew/.linuxbrew/bin"
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin $(brew --prefix)/bin"
dependencies="ffmpeg grep sed cut head tail tr"
dependencies_found=""
dependencies_not_found=""

View File

@ -59,7 +59,7 @@ else
fi
# Check if ffmpeg is installed
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin /home/linuxbrew/.linuxbrew/bin"
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin $(brew --prefix)/bin"
dependencies="ffmpeg grep sed grep cut head tail tr cat"
dependencies_found=""
dependencies_not_found=""

View File

@ -66,7 +66,7 @@ else
fi
# Check if ffmpeg is installed
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin /home/linuxbrew/.linuxbrew/bin"
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin $(brew --prefix)/bin"
dependencies="ffmpeg grep find grep cut head tail tr cat"
dependencies_found=""
dependencies_not_found=""

View File

@ -54,7 +54,7 @@ fi
# Setting the correct resolution for the video file
# Sintaxis: set_resolution <resolution> <file>
function set_resolution() {
check_bc_app_directories="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin /home/linuxbrew/.linuxbrew/bin"
check_bc_app_directories="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin $(brew --prefix)/bin"
set_rel="${1}"
input_video_file="${2}"
bc_found="1"
@ -142,7 +142,7 @@ else
fi
# Check if ffmpeg is installed
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin /home/linuxbrew/.linuxbrew/bin"
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin $(brew --prefix)/bin"
dependencies="ffmpeg grep sed grep cut head tail tr cat bc"
dependencies_found=""
dependencies_not_found=""

View File

@ -54,7 +54,7 @@ fi
# Setting the correct resolution for the video file
# Sintaxis: set_resolution <resolution> <file>
function set_resolution() {
check_bc_app_directories="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin /home/linuxbrew/.linuxbrew/bin"
check_bc_app_directories="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin $(brew --prefix)/bin"
set_rel="${1}"
input_video_file="${2}"
bc_found="1"
@ -142,7 +142,7 @@ else
fi
# Check if ffmpeg is installed
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin /home/linuxbrew/.linuxbrew/bin"
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin $(brew --prefix)/bin"
dependencies="ffmpeg grep sed grep cut head tail tr cat bc"
dependencies_found=""
dependencies_not_found=""

View File

@ -54,7 +54,7 @@ fi
# Setting the correct resolution for the video file
# Sintaxis: set_resolution <resolution> <file>
function set_resolution() {
check_bc_app_directories="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin /home/linuxbrew/.linuxbrew/bin"
check_bc_app_directories="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin $(brew --prefix)/bin"
set_rel="${1}"
input_video_file="${2}"
bc_found="1"
@ -142,7 +142,7 @@ else
fi
# Check if ffmpeg is installed
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin /home/linuxbrew/.linuxbrew/bin"
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin $(brew --prefix)/bin"
dependencies="ffmpeg grep sed grep cut head tail tr cat bc"
dependencies_found=""
dependencies_not_found=""

View File

@ -21,7 +21,7 @@ if [ -f "/usr/bin/cygwin-alias.sh" ] ; then
fi
# Check if ffmpeg is installed
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin /home/linuxbrew/.linuxbrew/bin"
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin $(brew --prefix)/bin"
dependencies="ffmpeg grep find grep cut head tail cat"
dependencies_found=""
dependencies_not_found=""

View File

@ -59,7 +59,7 @@ else
fi
# Check if ffmpeg is installed
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin /home/linuxbrew/.linuxbrew/bin"
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin $(brew --prefix)/bin"
dependencies="ffmpeg grep sed grep cut head tail tr cat"
dependencies_found=""
dependencies_not_found=""

View File

@ -66,7 +66,7 @@ else
fi
# Check if ffmpeg is installed
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin /home/linuxbrew/.linuxbrew/bin"
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin $(brew --prefix)/bin"
dependencies="ffmpeg grep find grep cut head tail tr cat"
dependencies_found=""
dependencies_not_found=""

View File

@ -783,7 +783,7 @@ function showHelp() {
# Function to check if all the necessary tools
# for the execution are installed.
function checkDependencies() {
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin /home/linuxbrew/.linuxbrew/bin"
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin $(brew --prefix)/bin"
dependencies="sshpass expect rsync md5sum scp ssh find grep sed cut head tail cat ssh-keyscan ssh-keygen"
dependencies_found=""
dependencies_not_found=""

View File

@ -810,7 +810,7 @@ function showHelp() {
# Function to check if all the necessary tools
# for the execution are installed.
function checkDependencies() {
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin /home/linuxbrew/.linuxbrew/bin"
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin $(brew --prefix)/bin"
dependencies="sshpass expect rsync md5sum scp ssh find grep sed cut head tail cat ssh-keyscan ssh-keygen"
dependencies_found=""
dependencies_not_found=""

View File

@ -764,7 +764,7 @@ function showHelp() {
# Function to check if all the necessary tools
# for the execution are installed.
function checkDependencies() {
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin /home/linuxbrew/.linuxbrew/bin"
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin $(brew --prefix)/bin"
dependencies="sshpass expect rsync md5sum scp ssh find grep sed cut head tail cat ssh-keyscan ssh-keygen"
dependencies_found=""
dependencies_not_found=""

View File

@ -783,7 +783,7 @@ function showHelp() {
# Function to check if all the necessary tools
# for the execution are installed.
function checkDependencies() {
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin /home/linuxbrew/.linuxbrew/bin"
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin $(brew --prefix)/bin"
dependencies="sshpass expect rsync md5sum scp ssh find grep sed cut head tail cat ssh-keyscan ssh-keygen"
dependencies_found=""
dependencies_not_found=""

View File

@ -25,7 +25,7 @@ if [ -f "/usr/bin/cygwin-alias.sh" ] ; then
fi
# Check if ffmpeg is installed
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin /home/linuxbrew/.linuxbrew/bin"
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin $(brew --prefix)/bin"
dependencies="ffmpeg grep grep cut head tail tr"
dependencies_found=""
dependencies_not_found=""