From 22ff2368ad4577bab5bc0ea81a00529f7c7568d6 Mon Sep 17 00:00:00 2001 From: Reto Kromer Date: Sat, 8 Jul 2017 11:19:09 +0200 Subject: [PATCH] uniform --- scripts/ffmprovisr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/ffmprovisr b/scripts/ffmprovisr index 52b6d7c..7452bc0 100755 --- a/scripts/ffmprovisr +++ b/scripts/ffmprovisr @@ -2,7 +2,7 @@ # 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) if [ -d /usr/local/Cellar/ffmprovisr ] ; then ffmprovisr_path=$(find /usr/local/Cellar/ffmprovisr -iname 'index.html' | sort -M | tail -n1) @@ -15,7 +15,7 @@ if [[ ${OSTYPE} = "darwin"* ]] ; then else open "${ffmprovisr_path}" fi -elif [[ ${OSTYPE} = "linux-gnu" ]] ; 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