#!/bin/bash CONF_FILES="" PROG_FILES="" # Remove program files if ! [ "$1" = "-upgrade" ]; then if [ "$CONF_FILES" != "" ]; then for i in $CONF_FILES; do rm -rf $i &>/dev/null done fi fi if [ "$PROG_FILES" != "" ]; then for i in $PROG_FILES; do rm -rf $i done fi # Now remove ourself rm -f $0 exit 0