From 9e583bcdfa756ccc6e8699f1d3db17bff689c443 Mon Sep 17 00:00:00 2001 From: Hayden Hamilton Date: Mon, 25 May 2026 10:14:49 +0100 Subject: reconfig-smtpd, use test -gt and -lt --- dkim/reconfig-smtpd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dkim/reconfig-smtpd b/dkim/reconfig-smtpd index a7edd82..a9a302d 100755 --- a/dkim/reconfig-smtpd +++ b/dkim/reconfig-smtpd @@ -1,4 +1,4 @@ -#!/bin/rc -e +#!/bin/rc -ex # This script reconfigures and reloads smtpd to use the provided info. @@ -16,7 +16,7 @@ fn err { echo $* >[1=2] } -if (~ $#* 2 || ~ $#* 3) { } else { +if (test $#* -gt 3 || test $#* -lt 2) { err 'usage: reconfig-smtpd [domain]' exit 2 } -- cgit v1.2.3