From edad41db0f770ebddc3c871f41c593a7604f201f Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Wed, 13 Mar 2019 21:10:07 -0400 Subject: ob-installdocs: Fix mkdir when dest not given --- diff --git a/src/ob-installdocs.sh b/src/ob-installdocs.sh index dc768ed..305d3ee 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 ! mkdir -p -- "$(dirname -- "${data_doc_dir}/${dest}")" + if ! mkdir -p -- "$(dirname -- "${data_doc_dir}/./${dest}")" then ob_error "$(ob_get_msg 'cant_make_doc_dir')" return 1 @@ -39,7 +39,7 @@ install_docs() return 1 fi elif [ -d "${src}" ]; then - if ! mkdir -p -- "$(dirname -- "${data_doc_dir}/${dest}")" + if ! mkdir -p -- "$(dirname -- "${data_doc_dir}/./${dest}")" then ob_error "$(ob_get_msg 'cant_make_doc_dir')" return 1 -- cgit v0.9.1