shorewall_code/Shorewall
Jeremy Sowden 5e8ce7d073 lib.cli-std: fix two shell errors when AUTOMAKE is false
If `AUTOMAKE` is set to `no` in the config file, it is normalized to the
empty string.

This leads to two errors if `find` is provided by Busybox.

There is a conditional where `$AUTOMAKE` is not quoted when compared to
`recursive` leading to the following error:

  /usr/share/shorewall/lib.cli-std: line 398: [: =: unary operator expected

In contrast to the non-Busybox case, we don't check for an empty
`$AUTOMAKE` before passing it as an argument to `-maxdepth`, leading to:

  /usr/bin/find: Expected a positive decimal integer argument to -maxdepth, but got -type

Refactor the conditionals to eliminate code duplication and fix these two
bugs.

Link: https://gitlab.com/shorewall/code/-/issues/10
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
2023-09-04 21:06:30 +01:00
..
Actions Fix http links to point to current project website 2020-03-27 14:24:37 -07:00
configfiles Add an SPORT column to the tcpri file 2020-07-09 14:15:03 -07:00
Contrib Fix http links to point to current project website 2020-03-27 14:24:37 -07:00
Macros Add TorMetrics macro 2022-09-18 15:08:54 +03:00
manpages Simon Mater's patch to support gbits and gbps in rate/burst specifications 2020-10-09 09:39:01 -07:00
Perl Check for wait option if we don't have capabilities 2022-04-02 11:52:10 +02:00
Samples Add SPORT column to the snat file (FORMAT 2) 2020-06-27 14:50:23 -07:00
actions.std Fix http links to point to current project website 2020-03-27 14:24:37 -07:00
configpath Chop first config dir if non-root or if compiling for export. 2017-11-23 09:57:12 -08:00
COPYING Correct address of the FSF 2011-06-06 06:55:40 -07:00
default.debian.systemd Use a specific parameter file for systemd script 2017-02-22 17:56:25 -08:00
default.debian.sysvinit Use a specific parameter file for sysvinit script 2017-02-22 17:56:21 -08:00
helpers Remove pre-2.6.20 helpers 2019-02-06 14:11:48 -08:00
init.alt.sh Add ALT Linux support by Alexey Shabalin <sha-ba@mail.ru> 2018-05-29 08:13:26 -07:00
init.debian.sh Avoid echo options 2016-12-28 11:09:08 -08:00
init.fedora.sh Avoid echo options 2016-12-28 11:09:08 -08:00
init.sh Fix http links to point to current project website 2020-03-27 14:24:37 -07:00
init.slackware.shorewall.sh New 'reload' and 'restart' semantics 2015-07-26 09:59:49 -07:00
init.suse.sh Fix http links to point to current project website 2020-03-27 14:24:37 -07:00
INSTALL Fix http links to point to current project website 2020-03-27 14:24:37 -07:00
install.sh Revert "Move ${SBINDIR}/shorewall6 to the Shorewall-core product" 2020-09-15 16:49:19 -07:00
lib.cli-std lib.cli-std: fix two shell errors when AUTOMAKE is false 2023-09-04 21:06:30 +01:00
logrotate Add logrotate files to packages 2009-11-03 10:06:10 -08:00
Shorewall-targetname Add target file(s) 5.2.8-base 2020-09-24 15:16:51 -07:00
shorewall.service Replace StandardOutput=syslog by StandardOutput=journal in unit files 2020-10-30 09:24:47 -07:00
shorewall.service.debian Document related man-pages in Debian systemd service files 2023-01-31 22:50:18 +00:00
sysconfig Corrected sysconfig files 2016-01-19 09:25:37 -08:00
uninstall.sh Revert "Move ${SBINDIR}/shorewall6 to the Shorewall-core product" 2020-09-15 16:49:19 -07:00