add comment

This commit is contained in:
Reto Kromer 2017-05-13 07:04:10 +02:00 committed by GitHub
parent 3f76abc053
commit 172657b1bb

View File

@ -1,6 +1,8 @@
#!/usr/bin/env bash
if [[ $OSTYPE = darwin* ]] ; then
# This allows to open ffmprovisr locally from the terminal.
if [[ ${OSTYPE} = "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)
if [ -d /usr/local/Cellar/ffmprovisr ] ; then
ffmprovisr_path=$(find /usr/local/Cellar/ffmprovisr -iname 'index.html' | sort -M | tail -n1)
@ -13,7 +15,7 @@ if [[ $OSTYPE = darwin* ]] ; then
else
open "${ffmprovisr_path}"
fi
elif [[ $OSTYPE = linux-gnu ]] ; then
elif [[ ${OSTYPE} = "linux-gnu" ]] ; then
if [ -d ~/.linuxbrew/Cellar/ffmprovisr ] ; then
ffmprovisr_path=$(find ~/.linuxbrew/Cellar/ffmprovisr -iname 'index.html' | sort -M | tail -n1)
fi