25 lines
331 B
Bash
25 lines
331 B
Bash
#!/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
|