mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 00:37:00 +08:00
Merge branch 'tmp-311' into 'master'
tests: detect openconnect's path and fail if not found Closes #311 See merge request openconnect/ocserv!182
This commit is contained in:
@@ -23,11 +23,11 @@
|
||||
|
||||
builddir=${builddir:-.}
|
||||
|
||||
OPENCONNECT=${OPENCONNECT:-/usr/sbin/openconnect}
|
||||
OPENCONNECT=${OPENCONNECT:-$(which openconnect)}
|
||||
|
||||
if ! test -x ${OPENCONNECT};then
|
||||
if test -z "${OPENCONNECT}" || ! test -x ${OPENCONNECT};then
|
||||
echo "You need openconnect to run this test"
|
||||
exit 77
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if test -z "$NO_NEED_ROOT";then
|
||||
|
||||
Reference in New Issue
Block a user