From c8e101858b4caed5787a762a6c9f086382055e3b Mon Sep 17 00:00:00 2001 From: Michael Haubenwallner Date: Mon, 23 May 2016 15:53:13 +0000 Subject: Prepend ROOT with "/." when "//" redirects to network (as in Cygwin). Signed-off-by: Michael Haubenwallner --- build-docbook-catalog | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build-docbook-catalog b/build-docbook-catalog index 04914f2..1c7f103 100755 --- a/build-docbook-catalog +++ b/build-docbook-catalog @@ -1,5 +1,5 @@ #!/bin/bash -# $Header: /usr/local/src/gentoo/gentoo-src/cvsroot/gentoo-src/build-docbook-catalog/build-docbook-catalog,v 1.20 2013/09/28 02:30:06 ottxor Exp $ +# $Header: /usr/local/src/gentoo/gentoo-src/cvsroot/gentoo-src/build-docbook-catalog/build-docbook-catalog,v 1.21 2016/05/23 15:53:13 haubi Exp $ # # build-docbook-catalog: populate /etc/xml/docbook based in # installed docbook-xml-dtd versions. @@ -62,6 +62,7 @@ main() { if [[ ${ROOT} != "/" ]] ; then echo "Working on root ${ROOT}" fi + [[ // -ef / ]] || ROOT="/.${ROOT}" # "//" might refer to network if [[ ! -d ${ROOT}${ROOTCONFDIR} ]] ; then mkdir -p "${ROOT}${ROOTCONFDIR}" || error "could not create ${ROOTCONFDIR}" -- cgit v1.2.3-65-gdbad