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)
Tue, Nov 5, 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
Unknown Object (File)
Sep 2 2024, 11:00 AM
Unknown Object (File)
Aug 26 2024, 9:54 PM
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