From b72ba83675b61c698249832ff2fa048397da2592 Mon Sep 17 00:00:00 2001 From: Niklas Seyfarth Date: Fri, 17 Jan 2025 16:23:33 +0100 Subject: [PATCH] Fix problematic code to correctly represent the bad practice --- SC2143.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SC2143.md b/SC2143.md index 8238ba9..1c62492 100644 --- a/SC2143.md +++ b/SC2143.md @@ -3,7 +3,7 @@ ### Problematic code: ```sh -if [ "$(find . | grep 'IMG[0-9]')" ] +if [ -n "$(find . | grep 'IMG[0-9]')" ] then echo "Images found" fi