home · contact · privacy
Fix.
[config] / buster / setup_scripts / copy_dirtree.sh
index af5bfc0c5efc2ab4557803b15f0276d0bb552073..c0cb9bfea68afa67b9a99f1f6a6c468f83766afc 100755 (executable)
@@ -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