Skip to content

Commit

Permalink
Create uninstall
Browse files Browse the repository at this point in the history
  • Loading branch information
CRO-THEHACKER authored Apr 12, 2019
1 parent e67677f commit a2dfaca
Showing 1 changed file with 107 additions and 0 deletions.
107 changes: 107 additions & 0 deletions uninstall
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
!/bin/bash

# ----- FSociety Team -----

#

# Coded by: CRO-THEHACKER

# * https://github.com/CRO-THEHACKER/

# * http://thedarkarmy.ml/

#

# Feel free to share any ideas with the

# project!

#

# -------------------------

clear

echo "

";

if [ "$PREFIX" = "/data/data/com.termux/files/usr" ]; then

INSTALL_DIR="$PREFIX/usr/share/doc/fsociety"

BIN_DIR="$PREFIX/bin/"

BASH_PATH="$PREFIX/bin/bash"

TERMUX=true

pkg uninstall -y git python2

elif [ "$(uname)" = "Darwin" ]; then

INSTALL_DIR="/usr/local/fsociety"

BIN_DIR="/usr/local/bin/"

BASH_PATH="/bin/bash"

TERMUX=false

else

INSTALL_DIR="$HOME/.fsociety"

BIN_DIR="/usr/local/bin/"

BASH_PATH="/bin/bash"

TERMUX=false

sudo apt-get remove -y git python2.7

fi

echo "[✔] Checking directories...";

if [ -d "$INSTALL_DIR" ]; then

rm -rf "$INSTALL_DIR"

rm "$BIN_DIR/fsociety*"

sudo rm -rf "$INSTALL_DIR"

sudo rm "$BIN_DIR/fsociety*"

else

echo "[✘] If you want to uninstall you must remove previous installations [✘] ";

echo "[✘] Failed! [✘] ";

fi

echo "[✔] Cleaning up old directories...";

if [ -d "$ETC_DIR/Manisso" ]; then

echo "$DIR_FOUND_TEXT"

if [ "$TERMUX" = true ]; then

rm -rf "$ETC_DIR/Manisso"

else

sudo rm -rf "$ETC_DIR/Manisso"

fi

fi

clear

clear

echo "[✔] all good!"

0 comments on commit a2dfaca

Please sign in to comment.