removed cleanup function

This commit is contained in:
Bryan Joshua Pedini 2022-02-10 14:57:48 +01:00
parent e8f69fbbad
commit 6179e8d809

View File

@ -1,9 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
THIS="$(dirname "$(readlink -fm "$0")")"
SERVER=false SERVER=false
FORCE=false FORCE=false
CLEANUP=false
_arguments() { _arguments() {
for PARM in "$@"; do for PARM in "$@"; do
@ -11,8 +9,6 @@ _arguments() {
SERVER=true SERVER=true
elif [ "${PARM}" = "--force" ]; then elif [ "${PARM}" = "--force" ]; then
FORCE=true FORCE=true
elif [ "${PARM}" = "--cleanup" ]; then
CLEANUP=true
elif [ "${PARM}" = "-h" ] || [ "${PARM}" = "--help" ]; then elif [ "${PARM}" = "-h" ] || [ "${PARM}" = "--help" ]; then
_help _help
exit 0 exit 0
@ -30,8 +26,6 @@ _help() {
echo " Force the reinstallation of the files" echo " Force the reinstallation of the files"
echo " --server" echo " --server"
echo " Customizes the terminal feel for a server installation" echo " Customizes the terminal feel for a server installation"
echo " --cleanup"
echo " Removes the source folder after installation"
echo echo
} }
@ -46,10 +40,6 @@ _bashrc_ref() {
echo "fi" >> ~/.bashrc echo "fi" >> ~/.bashrc
} }
_cleanup() {
rm -rf ${THIS}
}
_main() { _main() {
_arguments "$@" _arguments "$@"
@ -69,11 +59,6 @@ _main() {
if [ "${SERVER}" = true ]; then if [ "${SERVER}" = true ]; then
sed -i 's/terminal_fancyfying/terminal_fancyfying_server/' ~/.bashrc_overrides/_all sed -i 's/terminal_fancyfying/terminal_fancyfying_server/' ~/.bashrc_overrides/_all
fi fi
if [ "${CLEANUP}" = true ]; then
echo "cleaning up..."
_cleanup
fi
} }
_main "$@" _main "$@"