X-Git-Url: https://plomlompom.com/repos/test.html?a=blobdiff_plain;f=buster%2Fsetup_scripts%2Fcopy_dirtree.sh;h=f8817aa9d174622da95a24498c10b44c7e4db9c9;hb=9b5745271c3dce941eeae4eb72dfc7716e3bdbf9;hp=af5bfc0c5efc2ab4557803b15f0276d0bb552073;hpb=8389c68ddf3e9d38d6a5609980eb165c3966782e;p=config
diff --git a/buster/setup_scripts/copy_dirtree.sh b/buster/setup_scripts/copy_dirtree.sh
index af5bfc0..f8817aa 100755
--- a/buster/setup_scripts/copy_dirtree.sh
+++ b/buster/setup_scripts/copy_dirtree.sh
@@ -21,12 +21,12 @@ config_tree_prefix="${HOME}/config/buster"
etc_files_dir="${config_tree_prefix}/etc_files"
for target_module in "$@"; do
+ mkdir -p "${source_root}/${target_module}"
cd "${source_root}/${target_module}"
for path in $(find . -type f); do
target_path="${target_root}"$(echo "${path}" | cut -c2-)
source_path=$(realpath "${path}")
dir=$(dirname "${target_path}")
- mkdir -p "${source_path}"
mkdir -p "${dir}"
cp "${source_path}" "${target_path}"
done