Go to file
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
docs Correct GFDL text embedded in document sources 2023-01-31 22:50:37 +00:00
Shorewall lib.cli-std: fix two shell errors when AUTOMAKE is false 2023-09-04 21:06:30 +01:00
Shorewall6 Merge branch 'systemd-service-documentation' into 'master' 2023-02-01 02:39:27 +00:00
Shorewall6-lite Merge branch 'systemd-service-documentation' into 'master' 2023-02-01 02:39:27 +00:00
Shorewall-core Restore omitted words from stop command description 2023-01-31 20:50:00 +00:00
Shorewall-init Document related man-pages in Debian systemd service files 2023-01-31 22:50:18 +00:00
Shorewall-lite Merge branch 'systemd-service-documentation' into 'master' 2023-02-01 02:39:27 +00:00
.gitattributes Avoid exporting targetfiles 2020-06-21 11:30:38 -07:00
release Restore 'release' symlink from 'trunk' (required by build). 2013-08-06 07:31:01 -07:00