mklni: Mark logs as host
This commit is contained in:
parent
1e84bdd2d2
commit
f36859b014
11
mklni
11
mklni
|
@ -2,20 +2,19 @@
|
||||||
|
|
||||||
ALPINE="https://dl-cdn.alpinelinux.org/alpine/v3.20/releases/x86_64/alpine-minirootfs-3.20.3-x86_64.tar.gz"
|
ALPINE="https://dl-cdn.alpinelinux.org/alpine/v3.20/releases/x86_64/alpine-minirootfs-3.20.3-x86_64.tar.gz"
|
||||||
CHROOTDIR="./alpine_chroot"
|
CHROOTDIR="./alpine_chroot"
|
||||||
LON_TOOL_URL="https://git.timoxa0.su/timoxa0/lon-tool/releases/download/latest/lon-tool_lin_amd64"
|
QEMU_STATIC_URL="https://github.com/multiarch/qemu-user-static/releases/download/v7.2.0-1/qemu-aarch64-static"
|
||||||
|
|
||||||
|
|
||||||
log()
|
log()
|
||||||
{
|
{
|
||||||
case "$2" in
|
case "$2" in
|
||||||
error)
|
error)
|
||||||
printf "\e[1m\e[31mERROR:\e[0m \e[1m%s\e[0m\n" "$1">&2;;
|
printf "\e[1m\e[31mERROR:\e[0m \e[1m%s\e[0m (host)\n" "$1">&2;;
|
||||||
internal)
|
internal)
|
||||||
printf "\e[1m\e[96m >>\e[0m \e[1m%s\e[0m\n" "$1">&2;;
|
printf "\e[1m\e[96m h>\e[0m \e[1m%s\e[0m\n" "$1">&2;;
|
||||||
ierror)
|
ierror)
|
||||||
printf "\e[1m\e[31m >>\e[0m \e[1m%s\e[0m\n" "$1">&2;;
|
printf "\e[1m\e[31m h>\e[0m \e[1m%s\e[0m\n" "$1">&2;;
|
||||||
*)
|
*)
|
||||||
printf "\e[1m\e[92m>>>\e[0m \e[1m%s\e[0m\n" "$1">&2;;
|
printf "\e[1m\e[92mH>>\e[0m \e[1m%s\e[0m\n" "$1">&2;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue