summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHelmut Grohne <helmutg@debian.org>2023-06-24 08:29:18 +0000
committerHelmut Grohne <helmutg@debian.org>2023-06-24 08:29:18 +0000
commit9f15658494bf31079e83554b6bee9bb7d59b7ff4 (patch)
treea0a0d445ff535ba5d9301cee4b74a176b6163747
parentc7325e9f97142c418997721579ad943445b3bba2 (diff)
parentab52e6cbdd09fe37c40cf0e136a2e79bdc32d12f (diff)
downloaddebvm-9f15658494bf31079e83554b6bee9bb7d59b7ff4.tar.gz
Merge branch 'term' into 'main'
bin/debvm-run: allow being run in environments without TERM set See merge request helmutg/debvm!33
-rwxr-xr-xbin/debvm-run2
1 files changed, 1 insertions, 1 deletions
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