Add new file

This commit is contained in:
Cody Cook 2022-07-25 20:11:31 +00:00
commit f39e10e4c3

24
remove.sh Normal file
View 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