diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-10-10 04:07:14 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-10-10 04:07:14 +0000 |
commit | d7acc69661755cb5d7624b692fae8faee08a5e96 (patch) | |
tree | 2f41b7f6f64c38a2d9b855ce91a06c137f1c9a32 | |
parent | 1ba9533cf1fbb69f44035d61e20a4cafb7f83e13 (diff) | |
download | pfsense-d7acc69661755cb5d7624b692fae8faee08a5e96.zip pfsense-d7acc69661755cb5d7624b692fae8faee08a5e96.tar.gz |
Throw an error when we detect a non 0 return value
-rwxr-xr-x | usr/local/sbin/update_file.sh | 6 |
1 files changed, 6 insertions, 0 deletions
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 |