# HG changeset patch # User nanaya # Date 1444504309 -32400 # Node ID 5a0f3d427979e6103b58b6e80953728be8502486 # Parent fd416344f17564097beb8d194c9bbbe6f9dd3d8b Change touch function to noop when uninstalling diff -r fd416344f175 -r 5a0f3d427979 setup --- a/setup Sun Oct 11 04:08:38 2015 +0900 +++ b/setup Sun Oct 11 04:11:49 2015 +0900 @@ -126,6 +126,9 @@ } _touch() { + test "${1}" = "uninstall" && return + shift + touch "${@}" _echo "Ensured existence of ${@}" } @@ -201,9 +204,9 @@ _rc "${1}" "gitconfig" ".gitconfig" _rc "${1}" "gitignore_global" ".gitignore_global" _rc "${1}" "hgrc" ".hgrc" - _touch "${HOME}/.hgrc.local" + _touch "${1}" "${HOME}/.hgrc.local" _rc "${1}" "hgignore_global" ".hgignore_global" - _touch "${HOME}/.hgignore_global.local" + _touch "${1}" "${HOME}/.hgignore_global.local" _rc "${1}" "inputrc" ".inputrc" _tmux "${1}" _rc "${1}" "vim-vividchalk" ".vim/colors/vividchalk.vim"