From 7136557fbc3abdd6952029d647d0251642bd0173 Mon Sep 17 00:00:00 2001
From: Vitaly Lipatov <lav@etersoft.ru>
Date: Fri, 21 Jul 2023 12:27:08 +0300
Subject: [PATCH] epm assure: don't print to stdout ever in --verbos

---
 bin/epm-assure       | 4 ++--
 bin/epm-sh-functions | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/bin/epm-assure b/bin/epm-assure
index 90634f44..37118aaf 100644
--- a/bin/epm-assure
+++ b/bin/epm-assure
@@ -56,7 +56,7 @@ __epm_assure_checking()
         if [ -e "$CMD" ] ; then
             if [ -n "$verbose" ] ; then
                 info "File or directory $CMD is already exists."
-                epm qf "$CMD"
+                epm qf "$CMD" >&2
             fi
             return 0
         fi
@@ -69,7 +69,7 @@ __epm_assure_checking()
         if [ -n "$verbose" ] ; then
             local compath="$(__check_command_in_path "$1")"
             info "Command $CMD is exists: $compath"
-            epm qf "$compath"
+            epm qf "$compath" >&2
         fi
         return 0
     fi
diff --git a/bin/epm-sh-functions b/bin/epm-sh-functions
index 5c9f3d2c..734b3d6b 100644
--- a/bin/epm-sh-functions
+++ b/bin/epm-sh-functions
@@ -640,7 +640,7 @@ assure_exists()
     local ask=''
     [ -n "$non_interactive" ] || ask=1
 
-    ( direct='' interactive=$ask epm_assure "$1" $package $3 ) || fatal
+    ( verbose='' direct='' interactive=$ask epm_assure "$1" $package $3 ) || fatal
 }
 
 assure_exists_erc()
-- 
2.24.1