svn commit: r326781 - stable/11/usr.sbin/periodic
Alan Somers
asomers at FreeBSD.org
Mon Dec 11 20:36:03 UTC 2017
Author: asomers
Date: Mon Dec 11 20:36:01 2017
New Revision: 326781
URL: https://svnweb.freebsd.org/changeset/base/326781
Log:
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
Modified:
stable/11/usr.sbin/periodic/periodic.sh
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/usr.sbin/periodic/periodic.sh
==============================================================================
--- stable/11/usr.sbin/periodic/periodic.sh Mon Dec 11 20:33:11 2017 (r326780)
+++ stable/11/usr.sbin/periodic/periodic.sh Mon Dec 11 20:36:01 2017 (r326781)
@@ -103,7 +103,7 @@ case $arg in
dirlist="$arg"
else
echo "$0: $arg not found" >&2
- continue
+ exit 1
fi
;;
*) dirlist=
More information about the svn-src-stable-11
mailing list