summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2015-04-07 02:24:57 +0000
committerRalph Amissah <ralph@amissah.com>2015-04-09 03:05:39 +0000
commit8f28f4c49ab6592550494bf56c6603a3044736cf (patch)
tree2f2e94ebe3e718d710b96239b7c4f26df1b51dd1 /lib
parentd: ao_doc_objects fix for ao_doc_str (diff)
downloadsisu-8f28f4c49ab6592550494bf56c6603a3044736cf.zip
sisu-8f28f4c49ab6592550494bf56c6603a3044736cf.tar.xz
c&d: se_programs for "which" i/o redirection of error message
Diffstat (limited to 'lib')
-rw-r--r--lib/sisu/current/se_programs.rb2
-rw-r--r--lib/sisu/develop/se_programs.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/sisu/current/se_programs.rb b/lib/sisu/current/se_programs.rb
index ee85725..83c5797 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 ba3a7b2..e394988 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