Skip to content

Commit 08444f1

Browse files
committed
config/spam_reporting: Fix sh syntax to properly enclose $1 with quotes
1 parent e57f948 commit 08444f1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/core/config/spam_reporting.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -243,13 +243,13 @@ pipe :copy "sa-learn-ham.sh" [ "${username}" ];
243243
```sh[sa-learn-spam.sh]
244244
#!/bin/sh
245245
# you can also use tcp/ip here, consult spamc(1)
246-
exec /usr/bin/spamc -u ${1} -L spam
246+
exec /usr/bin/spamc -u "$1" -L spam
247247
```
248248

249249
```sh[sa-learn-ham.sh]
250250
#!/bin/sh
251251
# you can also use tcp/ip here, consult spamc(1)
252-
exec /usr/bin/spamc -u ${1} -L ham
252+
exec /usr/bin/spamc -u "$1" -L ham
253253
```
254254
:::
255255

@@ -267,12 +267,12 @@ spamc for further details.
267267
::: code-group
268268
```sh[sa-learn-spam.sh]
269269
#!/bin/sh
270-
exec /usr/bin/sa-learn -u ${1} --spam
270+
exec /usr/bin/sa-learn -u "$1" --spam
271271
```
272272

273273
```sh[sa-learn-ham.sh]
274274
#!/bin/sh
275-
exec /usr/bin/sa-learn -u ${1} --ham
275+
exec /usr/bin/sa-learn -u "$1" --ham
276276
```
277277
:::
278278

@@ -281,12 +281,12 @@ exec /usr/bin/sa-learn -u ${1} --ham
281281
::: code-group
282282
```sh[sa-learn-spam.sh]
283283
#!/bin/sh
284-
exec /usr/bin/dspam --client --user ${1} --class=spam --source=error
284+
exec /usr/bin/dspam --client --user "$1" --class=spam --source=error
285285
```
286286

287287
```sh[sa-learn-ham.sh]
288288
#!/bin/sh
289-
exec /usr/bin/dspam --client --user ${1} --class=innocent --source=error
289+
exec /usr/bin/dspam --client --user "$1" --class=innocent --source=error
290290
```
291291
:::
292292

0 commit comments

Comments
 (0)