From d7acc69661755cb5d7624b692fae8faee08a5e96 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Mon, 10 Oct 2005 04:07:14 +0000 Subject: Throw an error when we detect a non 0 return value --- usr/local/sbin/update_file.sh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'usr/local') diff --git a/usr/local/sbin/update_file.sh b/usr/local/sbin/update_file.sh index c23af60..f41dee2 100755 --- a/usr/local/sbin/update_file.sh +++ b/usr/local/sbin/update_file.sh @@ -41,3 +41,9 @@ for file in $FMATCHES ;do done /etc/rc.conf_mount_ro + +if [ $? -eq 0 ] + echo "File updated." + else + echo "An error occured during update." +fi \ No newline at end of file -- cgit v1.1