diff options
-rw-r--r-- | lib/sisu/current/se_programs.rb | 2 | ||||
-rw-r--r-- | lib/sisu/develop/se_programs.rb | 2 |
2 files changed, 2 insertions, 2 deletions
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 |