Blame SOURCES/BZ-1867135-print-scl_source-errors-to-stderr.patch

507f1c
commit 835ffbb5753036c4b58626869a4f0f5b30945707
507f1c
Author: Michal Domonkos <mdomonko@redhat.com>
507f1c
Date:   Tue Jul 13 17:01:07 2021 +0200
507f1c
507f1c
    Print scl_source errors to stderr
507f1c
    
507f1c
    Resolves: rhbz#1867135
507f1c
507f1c
diff --git a/shell/scl_source b/shell/scl_source
507f1c
index 30b8baf..c810cb9 100755
507f1c
--- a/shell/scl_source
507f1c
+++ b/shell/scl_source
507f1c
@@ -34,7 +34,7 @@ for arg in "$@"; do
507f1c
     _scl_prefix_file=$_scl_dir/$arg
507f1c
     _scl_prefix=`cat $_scl_prefix_file 2> /dev/null`
507f1c
     if [ $? -ne 0 ]; then
507f1c
-        echo "Can't read $_scl_prefix_file, $arg is probably not installed."
507f1c
+        echo >&2 "Can't read $_scl_prefix_file, $arg is probably not installed."
507f1c
         return 1
507f1c
     fi
507f1c
   
507f1c
@@ -60,7 +60,7 @@ if [ $_recursion == "false" ]; then
507f1c
         _scl_scriptlet_path="${_scl_prefixes[$_i]}/${_scls[$_i]}/${_scl_scriptlet_name}"
507f1c
         source "$_scl_scriptlet_path"
507f1c
         if [ $? -ne 0 ]; then
507f1c
-            echo "Can't source $_scl_scriptlet_name, skipping."
507f1c
+            echo >&2 "Can't source $_scl_scriptlet_name, skipping."
507f1c
         else
507f1c
             export X_SCLS="${_scls[$_i]} $X_SCLS"
507f1c
         fi;