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)
Mar 8 2024, 5:38 AM
Unknown Object (File)
Mar 8 2024, 5:38 AM
Unknown Object (File)
Mar 8 2024, 5:38 AM
Unknown Object (File)
Mar 8 2024, 5:25 AM
Unknown Object (File)
Feb 22 2024, 1:38 PM
Unknown Object (File)
Jan 11 2024, 9:48 PM
Unknown Object (File)
Dec 20 2023, 12:26 AM
Unknown Object (File)
Jul 24 2023, 12:58 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