Skip to content
Snippets Groups Projects
Commit 875d25a5 authored by jurgenhaas's avatar jurgenhaas
Browse files

Correctly delete config files when running CollectConfig

parent b3975dee
No related branches found
No related tags found
No related merge requests found
......@@ -17,10 +17,10 @@ CollectConfig:
- |
function collectDir() {
mkdir -p $1
cd $1
find . -type d -exec mkdir -p "$1/{}" \;
find . -type f -name '.*' -delete -exec sh -c "echo {}|sed -r 's/\.\/\./$1\//g'|xargs rm" \;
find . -type f -exec cp "$1/{}" "$2/{}" \;
cd $2
find $1 -type d -exec mkdir -p "$1/{}" \;
find $1 -type f -name '.*' -delete -exec sh -c "echo {}|sed -r 's/\.\/\.//g'|xargs rm" \;
find $1 -type f -exec cp "$1/{}" "$2/{}" \;
cd -
rm -rf $1
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment