mirror of
https://github.com/opnsense/tools.git
synced 2026-05-28 04:35:46 -04:00
build/print: simplify if we don't use the result
This commit is contained in:
parent
4030bd6cfa
commit
91cace4200
1 changed files with 1 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue