changeset 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
files setup
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/setup	Wed Oct 26 16:52:34 2011 +0700
+++ b/setup	Wed Oct 26 16:54:25 2011 +0700
@@ -40,7 +40,7 @@
 
 uninstall() {
   for i in .ecos_tcsh .tmux.conf .hgrc .vimrc .inputrc bin-ec .ecos.bin .ecos_bin .ecos_bash .ecos_zsh; do
-    if [ -f "${HOME}/${i}" ]; then
+    if [ -e "${HOME}/${i}" ]; then
       echo "Removing file: ~/${i}"
       rm -f "${HOME}/${i}"
     fi