summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ob-installdocs.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ob-installdocs.sh b/src/ob-installdocs.sh
index 0b3a342..2a3271d 100644
--- a/src/ob-installdocs.sh
+++ b/src/ob-installdocs.sh
@@ -97,7 +97,8 @@ main()
ob_info "$(ob_get_msg 'docs_already_linked')" "${pkg}"
else
ob_info "$(ob_get_msg 'linking_docs')" "${pkg}"
- if ! mkdir -p -- "${data_doc_dir%/*}"; then
+ if ! mkdir -p -- "$(dirname -- \
+ "${data_doc_dir}")"; then
ob_error "$(ob_get_msg 'cant_make_doc_dir')"
return 1
fi