Skip to content

Commit 7998041

Browse files
committed
bash: common: use cat if bat is missing in log_file_bat()
- otherwise contents wouldn't be shown at all - maybe it's time to add bat to downloaded dependencies (like linuxkit)? Signed-off-by: Ricardo Pardini <ricardo@pardini.net>
1 parent 62a3aeb commit 7998041

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bash/common.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ function log_file_bat() {
5151
elif command -v batcat > /dev/null; then
5252
batcat --color=always --paging=never "${extra_bat_args[@]}" "${file}"
5353
else
54-
log "${level}" "'bat' utility not installed; install it to see file contents in logs."
54+
log "${level}" "'bat' utility not installed; install it to see file contents colorized in logs."
55+
cat "${file}"
5556
fi
5657
}
5758

0 commit comments

Comments
 (0)