From 82a4dc8e19b82835f06ac77f527f6194b6b76690 Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Thu, 31 Mar 2022 03:11:32 +0200 Subject: [PATCH] meta:archive: Use stderr for log messages --- meta/archive | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/meta/archive b/meta/archive index 73b510a..79ad338 100755 --- a/meta/archive +++ b/meta/archive @@ -49,15 +49,15 @@ for file in "${to_archive[@]}"; do done if rmdir "$tmpd" 2>/dev/null; then - echo "Nothing to archive" + >&2 echo "Nothing to archive" else name="existing-$(date +"%Y%m%d_%H%M%S").tar.gz" if tar czvf "$name" "$tmpd"; then rm -rf "$tmpd" - echo "$name created" + >&2 echo "$name created" else errc=$? - echo "Archive could not be created. See $tmpd." + >&2 echo "Archive could not be created. See $tmpd." exit $errc fi fi