mirror of
https://github.com/amiaopensource/ffmprovisr.git
synced 2025-02-10 09:09:01 +01:00
check if connected to the web
This commit is contained in:
parent
23148d4721
commit
b598ed1040
@ -7,7 +7,7 @@ if [[ "$(uname -s)" = "Darwin" ]] ; then
|
|||||||
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)
|
||||||
fi
|
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/'
|
ffmprovisr_path='https://amiaopensource.github.io/ffmprovisr/'
|
||||||
fi
|
fi
|
||||||
if [ -n "${default_browser}" ] ; then
|
if [ -n "${default_browser}" ] ; then
|
||||||
@ -19,7 +19,7 @@ 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
|
||||||
if [ -z "${ffmprovisr_path}" ] ; 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/'
|
||||||
fi
|
fi
|
||||||
xdg-open "${ffmprovisr_path}"
|
xdg-open "${ffmprovisr_path}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user