From e42d087351cdda773b8f998b09fbd2373ec61130 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sat, 29 Dec 2018 01:37:02 -0500 Subject: ob_get_system_*(): Return 1 and hide message on error --- (limited to 'lib') 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 } -- cgit v0.9.1