Skip to content

Commit

Permalink
launch.sh: Check for a local websockify directory
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
lyarwood committed Jul 9, 2019
1 parent 23af6e1 commit 188c9a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/launch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 188c9a5

Please sign in to comment.