build/print: simplify if we don't use the result

This commit is contained in:
Franco Fichtner 2025-10-29 11:19:55 +01:00
parent 4030bd6cfa
commit 91cace4200

View file

@ -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