forked from Manisso/fsociety
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e67677f
commit a2dfaca
Showing
1 changed file
with
107 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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!" |