Page MenuHomePhabricator

use exit trap to reduce code duplication
Closed, ResolvedPublic

Description

Instead of using the following in every script...

benchmarktimeend ## sets benchmark_took_time (implemented in help-steps/pre)
true "${bold}INFO: End of: $BASH_SOURCE | $whonix_build_error_counter error(s) detected. (benchmark: $benchmark_took_time)${reset}"

An exit trap in help-steps/pre would be better.

Details

Impact
Normal