12345678910111213141516171819202122232425262728 |
- #!/bin/bash
- # This software is licensed unter the GPLv3.
- #
- # This program is free software: you can redistribute it and/or modify
- # it under the terms of the GNU General Public License as published by
- # the Free Software Foundation, either version 3 of the License, or
- # any later version.
- #
- # This program is distributed in the hope that it will be useful,
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- # GNU General Public License for more details.
- #
- # See http://www.gnu.org/licenses/ fore more information.
- # Copyright (C) 2020 by this-is-kate (https://notabug.org/this-is-kate)
- cd /
- SEARCH=($(find $1 -type d -name "*trashfinder*"))
- sss=( "${SEARCH[@]}" )
- for s in ${sss[@]}
- do
- $( rm -rf $(echo "${s}/*") )
- done
- exit 0
|