summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorJacob McDonnell <jacob@jacobmcdonnell.com>2024-12-05 14:34:10 -0500
committerJacob McDonnell <jacob@jacobmcdonnell.com>2024-12-05 14:34:10 -0500
commit1a1bc3c5c719e22445f8d00d95a149201a5041e7 (patch)
tree698b9e0164dfdc79219026c580cb884d97b1f719 /util
parent32b531be0490a0b79d777dbfd15eeafb908e1276 (diff)
Bug Fixes
Diffstat (limited to 'util')
-rwxr-xr-xutil5
1 files changed, 3 insertions, 2 deletions
diff --git a/util b/util
index be30a87..58cad15 100755
--- a/util
+++ b/util
@@ -6,9 +6,9 @@ target="$HOME/personal"
log() {
if [[ $dry == "1" ]]; then
- echo "[DRY_RUN]: $1"
+ echo "[DRY_RUN]: $@"
else
- echo "$1"
+ echo "$@"
fi
}
@@ -26,6 +26,7 @@ copy_dir() {
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