Page MenuHomeFreeBSD

periodic: fix exit status for nonexistent arguments
ClosedPublic

Authored by asomers on Nov 13 2017, 4:00 PM.
Tags
None
Referenced Files
F110333175: D13070.diff
Sun, Feb 16, 11:22 PM
Unknown Object (File)
Dec 7 2024, 10:37 PM
Unknown Object (File)
Nov 5 2024, 9:05 AM
Unknown Object (File)
Sep 30 2024, 5:00 PM
Unknown Object (File)
Sep 17 2024, 2:53 AM
Unknown Object (File)
Sep 16 2024, 11:10 PM
Unknown Object (File)
Sep 15 2024, 9:00 PM
Unknown Object (File)
Sep 8 2024, 6:42 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 Passed
Unit
No Test Coverage
Build Status
Buildable 12720
Build 12989: arc lint + arc unit