~adigitoleo/axe

6d3a8a5b7a6cd95a3a34148a057b8031b992a126 — adigitoleo 2 months ago c3603d3 dev main v0.2.4
fix: Fix typo in conditional check for missing old logfiles
1 files changed, 2 insertions(+), 2 deletions(-)

M axe.sh
M axe.sh => axe.sh +2 -2
@@ 97,10 97,10 @@ while [ $# -gt 0 ]; do
    # Check for the log directory.
    test -d /var/log/socklog/"$1" || \
        { warn "directory /var/log/socklog/$1 does not exist or is inacessible"; shift; continue; }
    # Add the old log files, ending in .s or .u, to the list if they are readable.
    # Add the old log files, ending in .s or .u, to the list if they exist and are readable.
    for LOGFILE in /var/log/socklog/"$1"/*.[us]; do
        case "$LOGFILE" in
            *_[us] ) break ;; # In POSIX sh, failed globs just return the pattern.
            *.\[us\] ) break ;; # In POSIX sh, failed globs just return the pattern.
            * ) if test -r "$LOGFILE"; then
                    LOGS="${LOGS} ${LOGFILE}"
                else