From 91cace42008d4ba0c26f5ab64b6095c59da2b08d Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Wed, 29 Oct 2025 11:19:55 +0100 Subject: [PATCH] build/print: simplify if we don't use the result --- build/print.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/build/print.sh b/build/print.sh index 8fa615d..436d42b 100644 --- a/build/print.sh +++ b/build/print.sh @@ -32,8 +32,7 @@ SELF=print . ./common.sh for ARG in ${@}; do - RESULT=$(env | grep "^${ARG}=" || true) - if [ -n "${RESULT}" ]; then + if env | grep -q "^${ARG}="; then echo ${ARG}=\"$(printenv ${ARG})\" fi done