]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r326041:
authorasomers <asomers@FreeBSD.org>
Mon, 11 Dec 2017 20:36:01 +0000 (20:36 +0000)
committerasomers <asomers@FreeBSD.org>
Mon, 11 Dec 2017 20:36:01 +0000 (20:36 +0000)
commit19b4a1ede4b55166d36ace3dc7070b4b54a4a312
treea530719ede0b1c8c8d0ff4fbc24ba367ba67274e
parent57aa8d98859ca71462b7c85b7d7d370a30173f25
MFC r326041:

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
Sponsored by: Spectra Logic Corp
Differential Revision: https://reviews.freebsd.org/D13070
usr.sbin/periodic/periodic.sh