launch.sh: Check for a local websockify directory

Previously launch.sh would check both for the existence of a local
websockify file and /websockify/run file.

This initial check should really be for a local websockify directory
as in packaged environments a file could very well be the actual
executable leading to launch.sh incorrectly attempting to use a local
version of websockify.
pull/36/head
Lee Yarwood 6 years ago committed by Lauri Kasanen
parent 74161066af
commit 257aabecb0

@ -128,7 +128,7 @@ if [ -n "${KEY}" ]; then
fi fi
# try to find websockify (prefer local, try global, then download local) # try to find websockify (prefer local, try global, then download local)
if [[ -e ${HERE}/websockify ]]; then if [[ -d ${HERE}/websockify ]]; then
WEBSOCKIFY=${HERE}/websockify/run WEBSOCKIFY=${HERE}/websockify/run
if [[ ! -x $WEBSOCKIFY ]]; then if [[ ! -x $WEBSOCKIFY ]]; then

Loading…
Cancel
Save