From c7faccf1fa9fc9deb6051e96acb13bb120b50c49 Mon Sep 17 00:00:00 2001 From: Teal Dulcet Date: Thu, 21 Dec 2023 08:49:20 -0800 Subject: [PATCH] Fixed SC2244: Prefer explicit -n to check non-empty string. --- setup/questions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/questions.sh b/setup/questions.sh index 34346595..5c182dcc 100644 --- a/setup/questions.sh +++ b/setup/questions.sh @@ -145,7 +145,7 @@ if [ -z "${PUBLIC_IPV6:-}" ]; then "${DEFAULT_PUBLIC_IPV6:-}" \ PUBLIC_IPV6 - if [ ! "$PUBLIC_IPV6_EXITCODE" ]; then + if [ ! -n "$PUBLIC_IPV6_EXITCODE" ]; then # user hit ESC/cancel exit fi