mirror of
https://github.com/amiaopensource/ffmprovisr.git
synced 2024-11-10 07:27:23 +01:00
Merge pull request #198 from amiaopensource/update
This commit is contained in:
commit
8d18077af5
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
# This allows to open ffmprovisr locally from the terminal.
|
# This allows to open ffmprovisr locally from the terminal.
|
||||||
|
|
||||||
if [[ ${OSTYPE} = "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
|
if [ -d /usr/local/Cellar/ffmprovisr ] ; then
|
||||||
ffmprovisr_path=$(find /usr/local/Cellar/ffmprovisr -iname 'index.html' | sort -M | tail -n1)
|
ffmprovisr_path=$(find /usr/local/Cellar/ffmprovisr -iname 'index.html' | sort -M | tail -n1)
|
||||||
@ -15,7 +15,7 @@ if [[ ${OSTYPE} = "darwin"* ]] ; then
|
|||||||
else
|
else
|
||||||
open "${ffmprovisr_path}"
|
open "${ffmprovisr_path}"
|
||||||
fi
|
fi
|
||||||
elif [[ ${OSTYPE} = "linux-gnu" ]] ; then
|
elif [[ "$(uname -s)" = "Linux" ]] ; then
|
||||||
if [ -d ~/.linuxbrew/Cellar/ffmprovisr ] ; then
|
if [ -d ~/.linuxbrew/Cellar/ffmprovisr ] ; then
|
||||||
ffmprovisr_path=$(find ~/.linuxbrew/Cellar/ffmprovisr -iname 'index.html' | sort -M | tail -n1)
|
ffmprovisr_path=$(find ~/.linuxbrew/Cellar/ffmprovisr -iname 'index.html' | sort -M | tail -n1)
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user