mirror of
https://github.com/amiaopensource/ffmprovisr.git
synced 2025-02-04 06:15:03 +01:00
new version
This commit is contained in:
parent
9bae51d6a4
commit
22fa09470b
@ -4,11 +4,10 @@
|
|||||||
|
|
||||||
if [[ "$(uname -s)" = "Darwin" ]] ; then
|
if [[ "$(uname -s)" = "Darwin" ]] ; then
|
||||||
default_browser=$(plutil -convert json ~/Library/Preferences/com.apple.LaunchServices/com.apple.launchservices.secure.plist -r -o - | grep https -b1 | tail -n1 | cut -d'"' -f4)
|
default_browser=$(plutil -convert json ~/Library/Preferences/com.apple.LaunchServices/com.apple.launchservices.secure.plist -r -o - | grep https -b1 | tail -n1 | cut -d'"' -f4)
|
||||||
if [ -d /usr/local/Cellar/ffmprovisr ] ; then
|
|
||||||
ffmprovisr_path=$(find /usr/local/Cellar/ffmprovisr -iname 'index.html' | sort -M | tail -n1)
|
|
||||||
fi
|
|
||||||
if ping -c 1 amiaopensource.github.io >/dev/null 2>&1 ; then
|
if ping -c 1 amiaopensource.github.io >/dev/null 2>&1 ; then
|
||||||
ffmprovisr_path='https://amiaopensource.github.io/ffmprovisr/'
|
ffmprovisr_path='https://amiaopensource.github.io/ffmprovisr/'
|
||||||
|
else
|
||||||
|
ffmprovisr_path=$(find /usr/local/Cellar/ffmprovisr -iname 'index.html' | sort -M | tail -n1)
|
||||||
fi
|
fi
|
||||||
if [ -n "${default_browser}" ] ; then
|
if [ -n "${default_browser}" ] ; then
|
||||||
open -b "${default_browser}" "${ffmprovisr_path}"
|
open -b "${default_browser}" "${ffmprovisr_path}"
|
||||||
@ -16,11 +15,10 @@ if [[ "$(uname -s)" = "Darwin" ]] ; then
|
|||||||
open "${ffmprovisr_path}"
|
open "${ffmprovisr_path}"
|
||||||
fi
|
fi
|
||||||
elif [[ "$(uname -s)" = "Linux" ]] ; then
|
elif [[ "$(uname -s)" = "Linux" ]] ; then
|
||||||
if [ -d ~/.linuxbrew/Cellar/ffmprovisr ] ; then
|
|
||||||
ffmprovisr_path=$(find ~/.linuxbrew/Cellar/ffmprovisr -iname 'index.html' | sort -M | tail -n1)
|
|
||||||
fi
|
|
||||||
if ping -c 1 amiaopensource.github.io >/dev/null 2>&1 ; then
|
if ping -c 1 amiaopensource.github.io >/dev/null 2>&1 ; then
|
||||||
ffmprovisr_path='https://amiaopensource.github.io/ffmprovisr/'
|
ffmprovisr_path='https://amiaopensource.github.io/ffmprovisr/'
|
||||||
|
else
|
||||||
|
ffmprovisr_path=$(find ~/.linuxbrew/Cellar/ffmprovisr -iname 'index.html' | sort -M | tail -n1)
|
||||||
fi
|
fi
|
||||||
xdg-open "${ffmprovisr_path}"
|
xdg-open "${ffmprovisr_path}"
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user