Re: Client history

Bo Berglund <[email protected]>
Newsgroups gmane.network.openvpn.user
Message-ID <[email protected]>
On Wed, 21 Feb 2024 11:04:48 +0000, Peter Davis via Openvpn-users
<[email protected]> wrote:

>
>Hello,
>I use Debian. I used "bash" instead of "sh":
>
># bash script-events.sh 
>script-events.sh: line 6: [: ==: unary operator expected
>
>I changed "[" to "[[":
>
># bash script-events.sh 
>#
>
>Seems OK?

You also need to change "]" to "]]"...

https://www.baeldung.com/linux/bash-single-vs-double-brackets


-- 
Bo Berglund
Developer in Sweden
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.