summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorJacob McDonnell <jacob@jacobmcdonnell.com>2025-05-06 17:42:48 -0400
committerJacob McDonnell <jacob@jacobmcdonnell.com>2025-05-06 17:42:48 -0400
commitf2fc0ce4c59dd6a08fdb46b856cf337c3f8bf9f5 (patch)
tree6c1b961eb16ef89549b9e861d3e9a62bce5695ca /util
parentc01fc6baa645d437734b0f7fc4da67c46b6279cd (diff)
Fixed some issues
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() {