added missing functions for output
This commit is contained in:
parent
c337c551d6
commit
b064c72d8f
1 changed files with 7 additions and 0 deletions
|
@ -1,5 +1,12 @@
|
||||||
#!/bin/bash
|
#!/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() {
|
chroot_add_mount() {
|
||||||
mount "$@" && CHROOT_ACTIVE_MOUNTS=("$2" "${CHROOT_ACTIVE_MOUNTS[@]}")
|
mount "$@" && CHROOT_ACTIVE_MOUNTS=("$2" "${CHROOT_ACTIVE_MOUNTS[@]}")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue