From 205c45d730a241dd4c24b01472b0e47f581ddfc2 Mon Sep 17 00:00:00 2001 From: Pablo Olmos de Aguilera Corradini Date: Sun, 1 Sep 2013 16:20:04 -0400 Subject: Show a difference between moving and link in mkrc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I found that after you add a file with `mkrc` command from any dir, the output looks like: $ mkrc ~/.my-awesome-dot-file ‘$HOME/.my-awesome-dot-file -> ‘$HOME/.dotfiles/my-awesome-dot-file' ‘$HOME/.my-awesome-dot-file -> ‘$HOME/.dotfiles/my-awesome-dot-file' $ It looks like the output it's appearing twice, which could led you believe something went wrong or the output is a bit buggy. Obivously, it's not, and the command ran without problems. Use `$PRINT` to show which step it is on before the verbose messages are displayed. --- bin/mkrc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bin') diff --git a/bin/mkrc b/bin/mkrc index 113c079..9bd9fba 100755 --- a/bin/mkrc +++ b/bin/mkrc @@ -75,6 +75,8 @@ for file in $files; do dotless=`echo $file | sed -e "s|$DEST_DIR/||" | sed -e 's/^\.//'` dest=`destination $DOTFILES_DIR $dotless $in_host $tag` mkdir -p $dest/`dirname $dotless` + $PRINT "Moving..." $MV $file $dest/$dotless + $PRINT "Linking..." $INSTALL -d $DOTFILES_DIR -t ${tag:--} $dotless done -- cgit v1.2.3