removed cleanup function

This commit is contained in:
Bryan Joshua Pedini 2022-02-10 14:57:48 +01:00
parent e8f69fbbad
commit 6179e8d809
1 changed files with 0 additions and 15 deletions

View File

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