]> git.ipfire.org Git - thirdparty/openvpn.git/commit
t_net.sh: drop hard dependency on t_client.rc
authorAntonio Quartulli <a@unstable.cc>
Tue, 21 Jul 2020 19:55:18 +0000 (21:55 +0200)
committerGert Doering <gert@greenie.muc.de>
Wed, 22 Jul 2020 06:56:07 +0000 (08:56 +0200)
commite6c86b24dbe8b001dfc8b9e9c4fad95e0f5973d4
tree4c712f05e34062224f38106cd2e918ab5eb8e559
parent8353ae8075fb25d1935258a2f007e024c5e2c43f
t_net.sh: drop hard dependency on t_client.rc

Right now t_net.sh depends on t_client.rc in order to source the
RUN_SUDO variable only.
However, t_client.rc is something that a few people only have configured
and thus this would result in t_net.sh almost never executed even if it
just could.

Drop dependency on t_client.rc by falling back to RUN_SUDO=sudo when the
file is missing and no RUN_SUDO is passed via env.

While at it, reword the error message to better match the current logic
flow.

Signed-off-by: Antonio Quartulli <a@unstable.cc>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20200721195518.14358-1-a@unstable.cc>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg20533.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
tests/t_net.sh