diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ob-installplatconf.sh | 7 |
1 files changed, 5 insertions, 2 deletions
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='' |