We would quite likely create an infinite loop here later and so should
rather treat run_command as a low-level function.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
shift
done
- # Run the common check
- lfsmakecommoncheck "${pkg}"
- [ $? == 1 ] && return 0
-
local command=(
# Run a shell
"bash"
lfsmake2() {
local pkg="${1}"
+ # Run the common check
+ lfsmakecommoncheck "${pkg}"
+ [ $? == 1 ] && return 0
+
# Run install on the package
if ! run_command --chroot "${pkg}" install; then
exiterror "Building ${pkg}"
ipfiredist() {
local pkg="${1}"
+ # Run the common check
+ lfsmakecommoncheck "${pkg}"
+ [ $? == 1 ] && return 0
+
# Run dist on the package
if ! run_command --chroot "${pkg}" dist; then
exiterror "Packging ${pkg}"