use errtrace would lead to fewer traps required

Information

ID: 48
PHID: PHID-TASK-d7ifltplijxh7fcvwsm3
Author: Patrick
Status at Migration Time: resolved
Priority at Migration Time: Normal

Description

Most ERR traps for individual #bash functions could be omitted by using at the beginning of the script:

set -o errtrace

and declaring for example trap "error_handler" ERR just once.

This is quite a big #refactoring task. Applies to Whonix’s #build script as well as most packages with scripts.

Comments


Patrick

2015-01-29 11:07:03 UTC


Patrick

2015-04-21 17:41:21 UTC