From b064c72d8f79fad51d04e1b497b364f41941f11e Mon Sep 17 00:00:00 2001 From: eichehome Date: Wed, 20 Dec 2023 00:12:28 +0100 Subject: [PATCH] added missing functions for output --- manual-build/archos-bootstrap | 7 +++++++ 1 file changed, 7 insertions(+) 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[@]}") }