Skip to content

Commit 2e67550

Browse files
committed
detect-environment: Filter the output of env
The detect-environment script is quite noicy due to the fact that it prints the environment every time it's sourced. Hence, modified it to print only the environment variables that the script affects. Ticket: ENT-12600 Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
1 parent 1f0a1ac commit 2e67550

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build-scripts/detect-environment

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ detect_environment
419419
echo
420420
echo
421421
echo "==================== Current environment ========================"
422-
env
422+
env | grep -E "^(label|CROSS_TARGET|UNAME|OS|OS_VERSION|DEP_PACKAGING|PACKAGING|ARCH|MAKE|FUSER|PATCH|MAKEFLAGS)="
423423
echo "================================================================="
424424
echo
425425
echo

0 commit comments

Comments
 (0)