home · contact · privacy
Fix.
authorChristian Heller <c.heller@plomlompom.de>
Sun, 12 Jan 2020 05:09:02 +0000 (06:09 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Sun, 12 Jan 2020 05:09:02 +0000 (06:09 +0100)
buster/setup_scripts/copy_dirtree.sh

index af5bfc0c5efc2ab4557803b15f0276d0bb552073..f8817aa9d174622da95a24498c10b44c7e4db9c9 100755 (executable)
@@ -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