From ab52e6cbdd09fe37c40cf0e136a2e79bdc32d12f Mon Sep 17 00:00:00 2001 From: Johannes Schauer Marin Rodrigues Date: Sat, 24 Jun 2023 09:05:30 +0200 Subject: bin/debvm-run: allow being run in environments without TERM set --- bin/debvm-run | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/debvm-run') diff --git a/bin/debvm-run b/bin/debvm-run index bba0c15..044cec0 100755 --- a/bin/debvm-run +++ b/bin/debvm-run @@ -456,7 +456,7 @@ if test -z "$GRAPHICAL"; then KERNEL_CMDLINE="${KERNEL_CMDLINE:+"$KERNEL_CMDLINE "}console=ttyS0" ;; esac - if test -t 0 && test -t 1 && test -n "$TERM"; then + if test -t 0 && test -t 1 && test -n "${TERM:-}"; then KERNEL_CMDLINE="${KERNEL_CMDLINE:+"$KERNEL_CMDLINE "}TERM=$TERM" fi else -- cgit v1.2.3