summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-09-29 15:34:14 (EDT)
committer P. J. McDermott <pjm@nac.net>2012-09-29 15:34:14 (EDT)
commitdb60ec5f224b9818da40599af683f18e2a22b5e5 (patch)
tree0f7d0b377a526d5cec3ed8f315e458751260f2d1
parent5d853f87ce0e6197c7ba929b5e05ca86e0397f18 (diff)
Fix parameter in ob_get_system_{arch,plat}().
-rw-r--r--lib/metadata.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/metadata.sh b/lib/metadata.sh
index 266e13a..28a984b 100644
--- a/lib/metadata.sh
+++ b/lib/metadata.sh
@@ -113,7 +113,7 @@ ob_get_system_arch()
{
_ob_local
- if [ ${?} -gt 0 ]; then
+ if [ ${#} -gt 0 ]; then
_ob_return 125
return ${?}
fi
@@ -128,7 +128,7 @@ ob_get_system_plat()
{
_ob_local
- if [ ${?} -gt 0 ]; then
+ if [ ${#} -gt 0 ]; then
_ob_return 125
return ${?}
fi