if [[ "${shmkalteriso}" = false ]]; then
mkalteriso="${script_path}/system/mkalteriso"
cd "${script_path}"
- make mkalteriso
+ _msg_info "Building mkalteriso..."
+ if [[ "${debug}" = true ]]; then
+ make mkalteriso
+ echo
+ else
+ make mkalteriso > /dev/null 2>&1
+ fi
cd - > /dev/null 2>&1
else
mkalteriso="${script_path}/system/mkalteriso.sh"
# Show settings.
show_settings() {
- echo
_msg_info "mkalteriso path is ${mkalteriso}"
echo
if [[ "${boot_splash}" = true ]]; then
done
-# Show alteriso version
-if [[ -d "${script_path}/.git" ]]; then
- cd "${script_path}"
- _msg_debug "The version of alteriso is $(git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g')."
- cd - > /dev/null 2>&1
-fi
-
-
# Check root.
if [[ ${EUID} -ne 0 ]]; then
_msg_warn "This script must be run as root." >&2
fi
+# Show alteriso version
+if [[ -d "${script_path}/.git" ]]; then
+ cd "${script_path}"
+ _msg_debug "The version of alteriso is $(git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g')."
+ cd - > /dev/null 2>&1
+fi
+
+
# Show config message
[[ -f "${defaultconfig}" ]] && _msg_debug "The settings have been overwritten by the ${defaultconfig}"
true | false) : ;;
*) echo; _msg_error "The variable name ${1} is not of bool type." "1";;
esac
- echo -e " ok"
+ if [[ "${debug}" = true ]]; then
+ echo -e " ok"
+ fi
}
if [[ "${debug}" = true ]]; then
echo
fi
-
-
set -eu
-
prepare_build
show_settings
run_once make_pacman_conf