summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChandan Singh <csingh43@bloomberg.net>2018-10-05 21:12:44 -0400
committerChandan Singh <chandan.devel@gmail.com>2018-10-08 18:25:39 +0000
commit3ca487b8762f3491d273aeae9c3b0b5c287e0b4e (patch)
tree7bf5c7b3d07aeb6e7526f7f214eb612a74aea477
parent350c67968b3033f37d0c3fcedede98559e5bb1d3 (diff)
downloadbuildstream-3ca487b8762f3491d273aeae9c3b0b5c287e0b4e.tar.gz
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.
-rwxr-xr-xcontrib/bst-docker-import8
1 files 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