From 9f3825909b74fc8703a3578523677e4f0948b526 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Wed, 13 Mar 2019 18:57:53 -0400 Subject: ob-installdocs: Replace "${data_doc_dir%/*}" with dirname --- 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 -- cgit v0.9.1