summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2018-12-29 01:37:02 (EST)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2018-12-29 01:37:02 (EST)
commite42d087351cdda773b8f998b09fbd2373ec61130 (patch)
tree737006d02d883fa75ce4eafb4b5831e451cecb93 /lib
parentac1575f9d1612ab1d4af9b1dbde9f0c20c507316 (diff)
ob_get_system_*(): Return 1 and hide message on error
Diffstat (limited to 'lib')
-rw-r--r--lib/metadata/proteanos.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/metadata/proteanos.sh b/lib/metadata/proteanos.sh
index 7afddbd..f889be7 100644
--- a/lib/metadata/proteanos.sh
+++ b/lib/metadata/proteanos.sh
@@ -101,14 +101,14 @@ _ob_get_distrev()
_ob_get_system_arch()
{
- cat "${SYSCONFDIR}/proteanos_arch"
+ cat "${SYSCONFDIR}/proteanos_arch" 2>/dev/null || return 1
return 0
}
_ob_get_system_plat()
{
- cat "${SYSCONFDIR}/proteanos_plat"
+ cat "${SYSCONFDIR}/proteanos_plat" 2>/dev/null || return 1
return 0
}