diff options
Diffstat (limited to 'src/ob-installdocs.sh')
-rw-r--r-- | src/ob-installdocs.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ob-installdocs.sh b/src/ob-installdocs.sh index 6b15e2c..cf67383 100644 --- a/src/ob-installdocs.sh +++ b/src/ob-installdocs.sh @@ -29,7 +29,7 @@ install_docs() for src in ${srcs}; do if [ -f "${src}" ]; then - if [ "${dest%/*}" != "${dest}" ]; then + if [ x"${dest%/*}" != x"${dest}" ]; then if ! mkdir -p "${data_doc_dir}/${dest%/*}"; then ob_error "$(ob_get_msg 'cant_make_doc_dir')" return 1 @@ -40,7 +40,7 @@ install_docs() return 1 fi elif [ -d "${src}" ]; then - if [ "${dest%/*}" != "${dest}" ]; then + if [ x"${dest%/*}" != x"${dest}" ]; then if ! mkdir -p "${data_doc_dir}/${dest%/*}"; then ob_error "$(ob_get_msg 'cant_make_doc_dir')" return 1 @@ -77,7 +77,7 @@ main() doc_dir="$(ob_get_system_path 'package-docs' \ "${pkg}" "${OPK_BINARY_VERSION}")" data_doc_dir="${pkg}.data/${doc_dir%/}" - if [ "${pkg}" = "${doc_pkg}" ]; then + if [ x"${pkg}" = x"${doc_pkg}" ]; then if [ -d "${data_doc_dir}" ]; then ob_info "$(ob_get_msg 'docs_already_installed')" "${pkg}" else |