From 8f28f4c49ab6592550494bf56c6603a3044736cf Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Mon, 6 Apr 2015 22:24:57 -0400 Subject: c&d: se_programs for "which" i/o redirection of error message --- lib/sisu/current/se_programs.rb | 2 +- lib/sisu/develop/se_programs.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/sisu') diff --git a/lib/sisu/current/se_programs.rb b/lib/sisu/current/se_programs.rb index ee85725f..83c57977 100644 --- a/lib/sisu/current/se_programs.rb +++ b/lib/sisu/current/se_programs.rb @@ -72,7 +72,7 @@ module SiSU_Sys_Call @sys=SiSU_Info_Sys::InfoSystem.instance end def program_found?(program) - found=`which #{program}` #`whereis #{program}` + found=`which #{program} 2>&1` #`whereis #{program}` (found =~/bin\/#{program}\b/) ? true : false end def locale #locales utf8 or other diff --git a/lib/sisu/develop/se_programs.rb b/lib/sisu/develop/se_programs.rb index ba3a7b26..e3949882 100644 --- a/lib/sisu/develop/se_programs.rb +++ b/lib/sisu/develop/se_programs.rb @@ -72,7 +72,7 @@ module SiSU_Sys_Call @sys=SiSU_Info_Sys::InfoSystem.instance end def program_found?(program) - found=`which #{program}` #`whereis #{program}` + found=`which #{program} 2>&1` #`whereis #{program}` (found =~/bin\/#{program}\b/) ? true : false end def locale #locales utf8 or other -- cgit v1.2.3