diff options
| author | Jacob McDonnell <jacob@jacobmcdonnell.com> | 2025-05-06 17:42:48 -0400 |
|---|---|---|
| committer | Jacob McDonnell <jacob@jacobmcdonnell.com> | 2025-05-06 17:42:48 -0400 |
| commit | f2fc0ce4c59dd6a08fdb46b856cf337c3f8bf9f5 (patch) | |
| tree | 6c1b961eb16ef89549b9e861d3e9a62bce5695ca /util | |
| parent | c01fc6baa645d437734b0f7fc4da67c46b6279cd (diff) | |
Fixed some issues
Diffstat (limited to 'util')
| -rwxr-xr-x | util | 12 |
1 files changed, 4 insertions, 8 deletions
@@ -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() { |
