add path on newer Machintoshes

This commit is contained in:
רטו\רעטאָ\רֵיטוֹ • Reto 2025-03-27 12:52:42 +01:00 committed by GitHub
parent e46bdc189a
commit fc2cd7f23e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -6,8 +6,10 @@
if [[ "$(uname -s)" = "Darwin" ]] ; then
if ping -c 1 amiaopensource.github.io >/dev/null 2>&1 ; then
ffmprovisr_path='https://amiaopensource.github.io/ffmprovisr/'
elif [[ -d /usr/local/Cellar/ffmprovisr ]] ; then
ffmprovisr_path=$(find /usr/local/Cellar/ffmprovisr -name 'index.html' | sort -M | tail -n1)
else
ffmprovisr_path=$(find /usr/local/Cellar/ffmprovisr -iname 'index.html' | sort -M | tail -n1)
ffmprovisr_path=$(find /opt/homebrew/Cellar/ffmprovisr -name 'index.html' | sort -M | tail -n1)
fi
open "${ffmprovisr_path}"
elif [[ "$(uname -s)" = "Linux" ]] ; then