In
596d947a ("Use $VPNPID when provided by OpenConnect"), I inadvertently
included an extra space, which entirely defeated the purpose of checking
if this variable is empty.
Signed-off-by: Daniel Lenski <dlenski@gmail.com>
# uniquely identify this VPN connection. Normally, the parent process
# is a shell, and the grandparent's PID is the relevant one.
# OpenConnect v9.0+ provides VPNPID, so we don't need to determine it.
-if [ -z "$VPNPID " ]; then
+if [ -z "$VPNPID" ]; then
VPNPID=$PPID
PCMD=`ps -c -o cmd= -p $PPID`
case "$PCMD" in