summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
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