From 7d68e103cc9d2ea0216eeae50caa6bdd2859ad98 Mon Sep 17 00:00:00 2001 From: Benjamin Drung Date: Wed, 12 Nov 2025 13:00:53 +0100 Subject: [PATCH] Fix shellcheck SC2268 shellcheck 0.11.0 complains: ``` In debian/initramfs-tools.postinst line 6: if [ "x$1" != xtriggered ]; then ^---^ SC2268 (style): Avoid x-prefix in comparisons as it no longer serves a purpose. Did you mean: if [ "$1" != triggered ]; then ``` --- debian/initramfs-tools.postinst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/initramfs-tools.postinst b/debian/initramfs-tools.postinst index 7b7a789..db2e9b2 100644 --- a/debian/initramfs-tools.postinst +++ b/debian/initramfs-tools.postinst @@ -3,7 +3,7 @@ set -e # Regenerate initramfs whenever we go to dpkg state `installed' -if [ "x$1" != xtriggered ]; then +if [ "$1" != triggered ]; then # this activates the trigger, if triggers are working update-initramfs -u else