From 188c9a591bccf57b5bfd9ae9e3e5ece0e9ba4a7c Mon Sep 17 00:00:00 2001 From: Lee Yarwood Date: Tue, 9 Jul 2019 12:12:43 +0100 Subject: [PATCH] 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. --- utils/launch.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/launch.sh b/utils/launch.sh index 0978b33d9..6138b9119 100755 --- a/utils/launch.sh +++ b/utils/launch.sh @@ -128,7 +128,7 @@ if [ -n "${KEY}" ]; then fi # 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 if [[ ! -x $WEBSOCKIFY ]]; then