diff --git a/manual-build/archos-bootstrap b/manual-build/archos-bootstrap index 01f8f97..77c702a 100644 --- a/manual-build/archos-bootstrap +++ b/manual-build/archos-bootstrap @@ -1,5 +1,12 @@ #!/bin/bash +# shellcheck disable=SC2059 # $1 and $2 can contain the printf modifiers +out() { printf "$1 $2\n" "${@:3}"; } +error() { out "==> ERROR:" "$@"; } >&2 +warning() { out "==> WARNING:" "$@"; } >&2 +msg() { out "==>" "$@"; } +die() { error "$@"; exit 1; } + chroot_add_mount() { mount "$@" && CHROOT_ACTIVE_MOUNTS=("$2" "${CHROOT_ACTIVE_MOUNTS[@]}") }