From f39e10e4c32e455636a6cd72312b1dac87e46028 Mon Sep 17 00:00:00 2001 From: Cody Cook Date: Mon, 25 Jul 2022 20:11:31 +0000 Subject: [PATCH] Add new file --- remove.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 remove.sh diff --git a/remove.sh b/remove.sh new file mode 100644 index 0000000..9e56862 --- /dev/null +++ b/remove.sh @@ -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