#!/bin/sh

echo "$1"

if [ "$1" != remove ]; then
  exit 0
fi

#if [ -e $HOME/.nutchez ]; then
#  rm -rf $HOME/.nutchez
#fi

for i in `sudo find /home/ -name ".nutchez"`; do
  if [ -d $i ];then
    echo "delete this dir :  $i"
    rm -ir $i
  fi
done

rm -f /usr/local/sbin/nutchez*

rm -rf /tmp/search

