From f2fc0ce4c59dd6a08fdb46b856cf337c3f8bf9f5 Mon Sep 17 00:00:00 2001 From: Jacob McDonnell Date: Tue, 6 May 2025 17:42:48 -0400 Subject: Fixed some issues --- util | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'util') 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() { -- cgit v1.2.3