comparison setup @ 126:9a15f3d1b5b0

Incorrect test - should test for any existence instead of file.
author Edho Prima Arief <edho@myconan.net>
date Wed, 26 Oct 2011 16:54:25 +0700
parents 7c01fc6f7460
children a7484f2c9616
comparison
equal deleted inserted replaced
125:7c01fc6f7460 126:9a15f3d1b5b0
38 fi 38 fi
39 } 39 }
40 40
41 uninstall() { 41 uninstall() {
42 for i in .ecos_tcsh .tmux.conf .hgrc .vimrc .inputrc bin-ec .ecos.bin .ecos_bin .ecos_bash .ecos_zsh; do 42 for i in .ecos_tcsh .tmux.conf .hgrc .vimrc .inputrc bin-ec .ecos.bin .ecos_bin .ecos_bash .ecos_zsh; do
43 if [ -f "${HOME}/${i}" ]; then 43 if [ -e "${HOME}/${i}" ]; then
44 echo "Removing file: ~/${i}" 44 echo "Removing file: ~/${i}"
45 rm -f "${HOME}/${i}" 45 rm -f "${HOME}/${i}"
46 fi 46 fi
47 done 47 done
48 uninstall_init "${HOME}/.cshrc" "#ECCORE_TCSH" 48 uninstall_init "${HOME}/.cshrc" "#ECCORE_TCSH"