Revert "Make mklib propogate all errors"
This reverts commit d6f55492af
.
It's both not portable and not safe to trap & exit on ERR. This will
need to use a more invasive approach that tests return code only for
selected, important commands.
This commit is contained in:
@@ -25,14 +25,6 @@
|
|||||||
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
|
|
||||||
# propagate any errors
|
|
||||||
function errtrap {
|
|
||||||
es=$?
|
|
||||||
exit $es
|
|
||||||
}
|
|
||||||
trap errtrap ERR
|
|
||||||
|
|
||||||
|
|
||||||
# Given a list of files, look for .a archives and unpack them.
|
# Given a list of files, look for .a archives and unpack them.
|
||||||
# Return the original list of files minus the .a files plus the unpacked files.
|
# Return the original list of files minus the .a files plus the unpacked files.
|
||||||
# first param: name of a temp directory (to be deleted when finished)
|
# first param: name of a temp directory (to be deleted when finished)
|
||||||
|
Reference in New Issue
Block a user