add more stack traces, other minor changes
[automated-distro-installer] / faiserver-setup
index f60ec4791a5c58d0fda16878136cfc8db7e8ac1b..69e783b54d542a89fc67ea95a3abdc9ece5e9217 100755 (executable)
@@ -15,8 +15,7 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 
-set -eE -o pipefail
-trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?" >&2' ERR
+x="$(readlink -f "$BASH_SOURCE")"; source "${x%/*}/bash-trace"
 
 [[ $EUID == 0 ]] || exec sudo "${BASH_SOURCE}" "$@"