git: 41c539bdd10b - main - stop on first error
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 24 Jan 2022 18:30:01 UTC
The branch main has been updated by wosch:
URL: https://cgit.FreeBSD.org/src/commit/?id=41c539bdd10bac8717159f33ee4ce810399520be
commit 41c539bdd10bac8717159f33ee4ce810399520be
Author: Wolfram Schneider <wosch@FreeBSD.org>
AuthorDate: 2022-01-22 09:57:09 +0000
Commit: Wolfram Schneider <wosch@FreeBSD.org>
CommitDate: 2022-01-24 18:27:34 +0000
stop on first error
---
usr.bin/locate/locate/concatdb.sh | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/usr.bin/locate/locate/concatdb.sh b/usr.bin/locate/locate/concatdb.sh
index ead474362c8a..28eb2d921c16 100644
--- a/usr.bin/locate/locate/concatdb.sh
+++ b/usr.bin/locate/locate/concatdb.sh
@@ -2,7 +2,7 @@
#
# SPDX-License-Identifier: BSD-2-Clause-FreeBSD
#
-# Copyright (c) September 1995 Wolfram Schneider <wosch@FreeBSD.org>. Berlin.
+# Copyright (c) September 1995-2022 Wolfram Schneider <wosch@FreeBSD.org>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@@ -34,6 +34,10 @@
#
# $FreeBSD$
+# stop on first error
+set -e
+set -o pipefail
+
# The directory containing locate subprograms
: ${LIBEXECDIR:=/usr/libexec}; export LIBEXECDIR