From de2f9394143b9520f7c5c432a64e398c6e837005 Mon Sep 17 00:00:00 2001 From: Ian Kelling Date: Sat, 7 Jun 2014 09:37:11 -0700 Subject: [PATCH] add errallow-function --- errallow-function | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 errallow-function diff --git a/errallow-function b/errallow-function new file mode 100644 index 0000000..fb00d95 --- /dev/null +++ b/errallow-function @@ -0,0 +1,17 @@ +#!/bin/bash +# Copyright (C) 2014 Ian Kelling + +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at + +# http://www.apache.org/licenses/LICENSE-2.0 + +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Undo the complimentary errcatch function +errallow() { set +eE +o pipefail; trap ERR; } -- 2.25.1