From 23b4d45c34bdf2211cb74ac19b36d8086eccbb89 Mon Sep 17 00:00:00 2001 From: xXJSONDeruloXx Date: Thu, 23 Jan 2025 00:08:36 -0500 Subject: add uninstaller button and script --- assets/fgmod-remover.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 assets/fgmod-remover.sh (limited to 'assets') diff --git a/assets/fgmod-remover.sh b/assets/fgmod-remover.sh new file mode 100644 index 0000000..32d4f71 --- /dev/null +++ b/assets/fgmod-remover.sh @@ -0,0 +1,18 @@ +#!/usr/bin/env bash + +# Remove /home/deck/fgmod directory if it exists +if [[ -d "/home/deck/fgmod" ]]; then + rm -rf "/home/deck/fgmod" +fi + +# Remove specific files from ~/Downloads if they exist +downloads_dir="$HOME/Downloads" +files_to_remove=("prepare.sh" "fgmod.sh" "fgmod-uninstaller.sh") + +for file in "${files_to_remove[@]}"; do + if [[ -f "$downloads_dir/$file" ]]; then + rm "$downloads_dir/$file" + fi +done + +echo "FGmod removed" \ No newline at end of file -- cgit v1.2.3