diff options
author | P. J. McDermott <pjm@nac.net> | 2012-10-04 15:19:05 (EDT) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2012-10-04 15:19:05 (EDT) |
commit | dfc573030ede1f8d245049abc2766d2d2afdfdfa (patch) | |
tree | 75a63cf9fd56ebb95f872c018bc436228e05bb3a | |
parent | abb13b216f7e8f7639d7dc0233046f9e7f1a924c (diff) |
Fix _ob_get_doc_package_2().
Output the correct package name and return an error when no package has
a "docs" file.
-rw-r--r-- | lib/package/2.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/package/2.sh b/lib/package/2.sh index 775a4dd..e0253e1 100644 --- a/lib/package/2.sh +++ b/lib/package/2.sh @@ -121,7 +121,12 @@ _ob_get_doc_package_2() fi done - echo "${_obgdp2_pkg}" + if [ -z "${_obgdp2_doc_pkg}" ]; then + _ob_return 1 + return ${?} + fi + + echo "${_obgdp2_doc_pkg}" _ob_return 0 return ${?} |