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
MFC after:	3 weeks
Sponsored by:	Spectra Logic Corp
Differential Revision:	https://reviews.freebsd.org/D13070
This commit is contained in:
Alan Somers 2017-11-20 23:51:51 +00:00
parent a4557b0509
commit 8394104312
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=326041

View file

@ -103,7 +103,7 @@ case $arg in
dirlist="$arg"
else
echo "$0: $arg not found" >&2
continue
exit 1
fi
;;
*) dirlist=