summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJohannes Schauer Marin Rodrigues <josch@mister-muffin.de>2023-06-24 09:05:30 +0200
committerJohannes Schauer Marin Rodrigues <josch@mister-muffin.de>2023-06-24 09:05:30 +0200
commitab52e6cbdd09fe37c40cf0e136a2e79bdc32d12f (patch)
treea0a0d445ff535ba5d9301cee4b74a176b6163747 /bin
parentc7325e9f97142c418997721579ad943445b3bba2 (diff)
downloaddebvm-ab52e6cbdd09fe37c40cf0e136a2e79bdc32d12f.tar.gz
bin/debvm-run: allow being run in environments without TERM set
Diffstat (limited to 'bin')
-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