diff setup @ 474:8c637534d6cd

More informative touch.
author edogawaconan <me@myconan.net>
date Sat, 20 Jul 2013 04:25:06 +0900
parents 1ed4d4c449a6
children 86873b811343
line wrap: on
line diff
--- a/setup	Sun Jul 14 02:05:55 2013 +0900
+++ b/setup	Sat Jul 20 04:25:06 2013 +0900
@@ -116,6 +116,11 @@
   esac
 }
 
+_touch() {
+  touch "${@}"
+  _echo "Ensured existence of ${@}"
+}
+
 _help() {
   cat <<EOF
 Usage: ${0} [install|uninstall]
@@ -133,7 +138,7 @@
     _rc "${1}" "gitignore_global" ".gitignore_global"
     _rc "${1}" "hgrc" ".hgrc"
     _rc "${1}" "hgignore_global" ".hgignore_global"
-    touch "${HOME}/.hgignore_global.local"
+    _touch "${HOME}/.hgignore_global.local"
     _rc "${1}" "inputrc" ".inputrc"
     _rc "${1}" "tmux.conf" ".tmux.conf"
     _rc "${1}" "vim-solarized" ".vim/colors/solarized.vim"