Permalink
Browse files

Add sanity to installer

  • Loading branch information...
1 parent bc2d22f commit cdecec36058163a79bd72f9729a6b32c03da91ef @richo richo committed Jan 22, 2012
Showing with 3 additions and 7 deletions.
  1. +3 −7 INSTALL
View
10 INSTALL
@@ -5,14 +5,10 @@ for i in *; do
if [ "$i" = "bin" ] || [ "$i" = "code" ]; then
ln -s $here/$i ~/$i
else
- echo $ARGV
- if [ -f ~/.$i ]; then
- rm -i $i
+ if [ -f ~/.$i -a ! -L ~/.$i ]; then
+ rm -i ~/.$i
+ ln -s $here/$i ~/.$i
fi
- if [ -L ~/.$i ]; then
- rm -i $i
- fi
- ln -s $here/$i ~/.$i
fi
done

0 comments on commit cdecec3

Please sign in to comment.