use exit trap to reduce code duplication

Information

ID: 269
PHID: PHID-TASK-m6prlwyh6q44sot53pfk
Author: Patrick
Status at Migration Time: resolved
Priority at Migration Time: Normal

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.

Comments


Patrick

2015-04-21 17:41:28 UTC