diff options
| author | Hayden Hamilton <hayden@hhvn.uk> | 2026-05-25 10:14:49 +0100 |
|---|---|---|
| committer | Hayden Hamilton <hayden@hhvn.uk> | 2026-05-25 10:14:49 +0100 |
| commit | 9e583bcdfa756ccc6e8699f1d3db17bff689c443 (patch) | |
| tree | 3f601a46bdd193ddeee49232a971a3b653e1266b | |
| parent | 837bcc72fd6d56163e2429736ce8b3b8d1921d15 (diff) | |
reconfig-smtpd, use test -gt and -lt
| -rwxr-xr-x | dkim/reconfig-smtpd | 4 |
1 files 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 <rsakey> <ed25519key> [domain]' exit 2 } |