Robert C Jennings 01b476c0eb live-build/ubuntu-cpc/hooks/999-extras.binary: Exit on first failure
Failure should be quick to eliminate excessive buildd time and make
identification of failure easier (no more buried errors).
2017-04-11 22:27:58 -05:00

16 lines
304 B
Bash
Executable File

#!/bin/bash
# Execute extra binary hooks.
my_dir=$(dirname $(readlink -f ${0}))
extra_d=${my_dir}/extra
if [ ! -d ${my_dir}/extra ]; then
exit 0
fi
# Export the common functions to the extras
. config/functions
# Cleaner execution
/bin/run-parts --exit-on-error --regex ".*\.binary" "${extra_d}"