diff --git a/deploy.sh b/deploy.sh index 6b1ba2c..768a0f8 100755 --- a/deploy.sh +++ b/deploy.sh @@ -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 "$@"