From 27486628982ad8391350f6bb596253c81ec4ce3c Mon Sep 17 00:00:00 2001 From: Midgard <2885-Midgard@users.noreply.framagit.org> Date: Thu, 24 Nov 2022 17:03:16 +0100 Subject: [PATCH] Correct unbound variable error in terminal.sh under X --- i3/terminal.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/i3/terminal.sh b/i3/terminal.sh index 8eb2854..2c404d3 100755 --- a/i3/terminal.sh +++ b/i3/terminal.sh @@ -5,7 +5,7 @@ set -uo pipefail set +e #CMD=i3-sensible-terminal -if [ -n "$WAYLAND_DISPLAY" ]; then +if [ -n "${WAYLAND_DISPLAY:-}" ]; then CMD=foot else CMD=xfce4-terminal