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

Correctly delete config files when running CollectConfig

parent 4957eb66
No related branches found
No related tags found
No related merge requests found
......@@ -20,9 +20,7 @@ CollectConfig:
mkdir -p $1
cd $1
find . -type d -exec mkdir -p "$1/{}" \;
cd $1
find . -type f -name '.*' -delete -exec sh -c "echo {}|sed -r 's/\.\/\.//g'|xargs cd $2; rm" \;
cd $1
find . -type f -name '.*' -delete -exec sh -c "echo {}|sed -r 's/\.\/\.//g'|xargs rm" \;
find . -type f -exec cp "$1/{}" "$2/{}" \;
cd "${CURRENT}"
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