Colors in log

This commit is contained in:
Kroese authored and GitHub committed 2023-05-11 04:10:19 +02:00
1 parent 316681d1a6
commit 9f9d32f0f9
1 file changed
+1 -1
+1 -1
View File
@@ -10,8 +10,8 @@ set -Eeuo pipefail
: ${DISK_SIZE:='16G'} # Initial data disk size
: ${RAM_SIZE:='512M'} # Maximum RAM amount
info () { echo -e "\E[1;34m❯ \E[1;36m$1\E[0m" ; }
error () { echo -e >&2 "\E[1;31m❯ ERROR: $1\E[0m" ; }
info () { echo -e "\E[1;34m❯\E[1;36m INFO: $1\E[0m" ; }
info "Starting Virtual DSM for Docker v${VERSION}..."
trap 'error "Error status $? for: ${BASH_COMMAND} (line $LINENO/$BASH_LINENO)"' ERR