summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rwxr-xr-xutil12
1 files changed, 4 insertions, 8 deletions
diff --git a/util b/util
index 6408e2e..8f39336 100755
--- a/util
+++ b/util
@@ -23,14 +23,10 @@ execute() {
copy_dir() {
from=$1
to=$2
- pushd $from
- dirs="$(find . -maxdepth 1 -mindepth 1 -type d)"
- for dir in $dirs; do
- log "Copying $dir"
- execute rm -rf $to/$dir
- execute cp -r $dir $to/$dir
- done
- popd
+ name=$(basename $from)
+
+ execute rm -rf $to/$name
+ execute cp -r $from $to/$name
}
copy_file() {