From d38034f408f705bbc18dcd022486c6067b1416fe Mon Sep 17 00:00:00 2001
From: Ian Kelling <ian@iankelling.org>
Date: Thu, 21 Oct 2021 17:49:06 -0400
Subject: [PATCH] bugfix

---
 filesystem/usr/local/bin/myupgrade-iank | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/filesystem/usr/local/bin/myupgrade-iank b/filesystem/usr/local/bin/myupgrade-iank
index 969db8b..ea610ab 100755
--- a/filesystem/usr/local/bin/myupgrade-iank
+++ b/filesystem/usr/local/bin/myupgrade-iank
@@ -21,7 +21,7 @@ hn=$(hostname -f)
 
 has_x=false
 for pkg in xorg wayland; do
-  if dpkg -s -- $x |& grep -Fx "Status: install ok installed" &> /dev/null; then
+  if dpkg -s -- $pkg |& grep -Fx "Status: install ok installed" &> /dev/null; then
     has_x=true
     break
   fi
-- 
2.30.2