X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;ds=inline;f=buster%2Fsetup_scripts%2Fcopy_dirtree.sh;h=c0cb9bfea68afa67b9a99f1f6a6c468f83766afc;hb=5f5aad4d7e9f84bed45b8fcf9f9c7d7223d09dcb;hp=af5bfc0c5efc2ab4557803b15f0276d0bb552073;hpb=8389c68ddf3e9d38d6a5609980eb165c3966782e;p=config
diff --git a/buster/setup_scripts/copy_dirtree.sh b/buster/setup_scripts/copy_dirtree.sh
index af5bfc0..c0cb9bf 100755
--- a/buster/setup_scripts/copy_dirtree.sh
+++ b/buster/setup_scripts/copy_dirtree.sh
@@ -17,16 +17,13 @@ source_root="$1"
target_root="$2"
shift 2
-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