From 2d09c6c1591e5635db7444d1c99d4e85ef4a9ead Mon Sep 17 00:00:00 2001 From: Chandan Singh Date: Fri, 5 Oct 2018 21:12:44 -0400 Subject: bst-docker-import: Consistently use stderr for all logs In !857, we added `contrib/bst-docker-import` script but it has a small issue that some of logs go to stdout while others go to stderr. Fix it so that all logging is done on stderr. --- contrib/bst-docker-import | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/contrib/bst-docker-import b/contrib/bst-docker-import index a451b8770..dfb16d7ce 100755 --- a/contrib/bst-docker-import +++ b/contrib/bst-docker-import @@ -93,10 +93,10 @@ echo "INFO: Checking out $element ..." >&2 $bst_cmd checkout --tar "$element" "$checkout_tar" || die "Failed to checkout $element" echo "INFO: Successfully checked out $element" >&2 -echo "INFO: Importing Docker image ..." +echo "INFO: Importing Docker image ..." >&2 "${docker_import_cmd[@]}" "$checkout_tar" "$docker_image_tag" || die "Failed to import Docker image from tarball" -echo "INFO: Successfully import Docker image $docker_image_tag" +echo "INFO: Successfully import Docker image $docker_image_tag" >&2 -echo "INFO: Cleaning up ..." +echo "INFO: Cleaning up ..." >&2 rm "$checkout_tar" || die "Failed to remove $checkout_tar" -echo "INFO: Clean up finished" +echo "INFO: Clean up finished" >&2 -- cgit v1.2.1