On Wed, Sep 14, 2022 at 5:30 AM Bernhard Reutner-Fischer
<[email protected]> wrote:
>
> s/==/=/g
> s/]]/]/g
> s/\[\[/[/g
>
> The POSIXly correct shorthand of test(1) is [, not [[
> and string comparison is POSIXly correct =, not ==.
Do note that all three of these scripts are explicitly intended+tested
*only* to run under Bash…
$ head -n1 android/fetch.sh trojans/csd-*.sh
==> android/fetch.sh <==
#!/bin/bash
==> trojans/csd-post.sh <==
#!/bin/bash
==> trojans/csd-wrapper.sh <==
#!/bin/bash
Is there some specific environment where your modifications make them
work with a "plain" POSIX sh, where they didn't previously work
correctly?
_______________________________________________
openconnect-devel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/openconnect-devel