summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-03-13 04:03:44 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-03-13 04:03:44 (EDT)
commit8f5364e44b3779a8da58693d6d0cef7563cf0e7d (patch)
tree29aa2c6e173c3135ba977c75d884de93e0e69015
parent90c36e26defc2f56b8db1294b857a4028b197437 (diff)
ob_parse_dep(): Fix crash on dep without version, arches, or plats
-rw-r--r--lib/deps.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/deps.sh b/lib/deps.sh
index 348839a..5af26ac 100644
--- a/lib/deps.sh
+++ b/lib/deps.sh
@@ -145,10 +145,10 @@ ob_parse_dep()
{
IFS=':' read pkg archqual
- read rel
- read ver
- read arches
- read plats
+ read rel || :
+ read ver || :
+ read arches || :
+ read plats || :
} <<-EOF
${dep}
EOF