diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2022-07-07 13:59:22 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2022-07-07 13:59:22 -0300 |
commit | 498a8ae6465a166511a04d1801f1ca678085866e (patch) | |
tree | dbe73ebb4b8d0fdab65d97ece71fc121395fefe8 | |
parent | a0fd97263fd990a7021e5ab98f41e13f01c39328 (diff) | |
download | trashman-498a8ae6465a166511a04d1801f1ca678085866e.tar.gz trashman-498a8ae6465a166511a04d1801f1ca678085866e.tar.bz2 |
Fix: redirect errors on 'find' invocations
-rw-r--r-- | share/trashman/trashman/functions | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/share/trashman/trashman/functions b/share/trashman/trashman/functions index abb2103..edc5e69 100644 --- a/share/trashman/trashman/functions +++ b/share/trashman/trashman/functions @@ -89,20 +89,20 @@ trashman_actions_folder() { fi if [ -e "$SHARE/$package/$ancestor/$family/$distro" ]; then - actions="`find $SHARE/$package/$ancestor/$family/$distro $findopts \; | xargs`" + actions="`find $SHARE/$package/$ancestor/$family/$distro $findopts \; 2> /dev/null | xargs`" else actions="" fi if [ -z "$actions" ]; then if [ -e "$SHARE/$package/$ancestor/$family" ]; then - actions="`find $SHARE/$package/$ancestor/$family $findopts \; | xargs`" + actions="`find $SHARE/$package/$ancestor/$family $findopts \; 2> /dev/null | xargs`" else actions="" fi if [ -z "$actions" ]; then - actions="`find $SHARE/$package/$ancestor $findopts \; | xargs`" + actions="`find $SHARE/$package/$ancestor $findopts \; 2> /dev/null | xargs`" if [ ! -z "$actions" ]; then echo $ancestor @@ -127,7 +127,7 @@ trashman_actions() { local folder="`trashman_actions_folder $package`" if [ ! -z "$SHARE/$package/$folder" ]; then - find $SHARE/$package/$folder $findopts \; | xargs + find $SHARE/$package/$folder $findopts \; 2> /dev/null | xargs fi } |