summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build/binary_rootfs5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/build/binary_rootfs b/scripts/build/binary_rootfs
index 78fe6633e..354fc8d87 100755
--- a/scripts/build/binary_rootfs
+++ b/scripts/build/binary_rootfs
@@ -265,7 +265,10 @@ case "${LB_CHROOT_FILESYSTEM}" in
# Remove stale squashfs image
rm -f chroot/filesystem.squashfs
- if [ "${_QUIET}" = "true" ]
+ # Do not display progress bar if:
+ # - Run with --quiet, or
+ # - stdin is not a terminal (e.g. in CI, cron, etc)
+ if [ "${_QUIET}" = "true" ] || [ ! -t 0 ]
then
MKSQUASHFS_OPTIONS="-no-progress ${MKSQUASHFS_OPTIONS}"
fi