From a4e75e82625aff1fb9c442c0ef9b6f982a639985 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Mon, 12 May 2014 13:55:29 -0400 Subject: ob-installplatconf: Check for "/" in destination. With a platconf line like "foo bar", ob-installplatconf would install "foo" to "bar/bar". --- (limited to 'src') diff --git a/src/ob-installplatconf.sh b/src/ob-installplatconf.sh index 466023c..04405b2 100644 --- a/src/ob-installplatconf.sh +++ b/src/ob-installplatconf.sh @@ -63,8 +63,11 @@ copy_config() fi # Make sure the destination directory exists. - mkdir -p "${dest_base}/${dest%/*}" || \ - ob_error "$(ob_get_msg 'cant_make_config_dest_dir')" "${dest%/*}" + if [ "x${dest%/*}" != "x${dest}" ]; then + mkdir -p "${dest_base}/${dest%/*}" || ob_error \ + "$(ob_get_msg 'cant_make_config_dest_dir')" \ + "${dest%/*}" + fi # Find the config package files. src_base='' -- cgit v0.9.1