diff --git a/scripts/ffmprovisr b/scripts/ffmprovisr index 7452bc0..ed07092 100755 --- a/scripts/ffmprovisr +++ b/scripts/ffmprovisr @@ -7,7 +7,7 @@ if [[ "$(uname -s)" = "Darwin" ]] ; then if [ -d /usr/local/Cellar/ffmprovisr ] ; then ffmprovisr_path=$(find /usr/local/Cellar/ffmprovisr -iname 'index.html' | sort -M | tail -n1) fi - if [ -z "${ffmprovisr_path}" ] ; then + if ping -c 1 amiaopensource.github.io >/dev/null 2>&1 ; then ffmprovisr_path='https://amiaopensource.github.io/ffmprovisr/' fi if [ -n "${default_browser}" ] ; then @@ -19,7 +19,7 @@ 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 [ -z "${ffmprovisr_path}" ] ; then + if ping -c 1 amiaopensource.github.io >/dev/null 2>&1 ; then ffmprovisr_path='https://amiaopensource.github.io/ffmprovisr/' fi xdg-open "${ffmprovisr_path}"