Page MenuHomeFreeBSD

periodic: fix exit status for nonexistent arguments
ClosedPublic

Authored by asomers on Nov 13 2017, 4:00 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Nov 24, 5:53 AM
Unknown Object (File)
Sun, Nov 23, 7:59 AM
Unknown Object (File)
Thu, Nov 20, 9:36 PM
Unknown Object (File)
Thu, Nov 20, 9:34 PM
Unknown Object (File)
Thu, Nov 20, 9:34 PM
Unknown Object (File)
Thu, Nov 20, 9:25 PM
Unknown Object (File)
Fri, Nov 14, 2:52 AM
Unknown Object (File)
Nov 4 2025, 9:41 AM
Subscribers

Details

Summary

periodic: fix exit status for nonexistent arguments

When called with an absolute pathname, periodic should attempt to execute every
script in that directory. If the directory does not exist, it should print an
error and exit 1. Due to a copy/paste mistake in r231568, it exits 0 in that
case.

Reported by: devel/hs-ShellCheck

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable