Add new file
This commit is contained in:
parent
0e77c59450
commit
f39e10e4c3
1 changed files with 24 additions and 0 deletions
24
remove.sh
Normal file
24
remove.sh
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
#!/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
|
Loading…
Add table
Add a link
Reference in a new issue