From 299719becdf9e6e1f7889d61ead45b7023811d43 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 5 Dec 2020 22:46:08 -0300 Subject: Fix: redirection --- share/trashman/trashman/functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'share') diff --git a/share/trashman/trashman/functions b/share/trashman/trashman/functions index 48700cd..a29ab4f 100644 --- a/share/trashman/trashman/functions +++ b/share/trashman/trashman/functions @@ -214,7 +214,7 @@ trashman_check_root() { fi if [ "`whoami`" != "root" ]; then - if which sudo &> /dev/null; then + if which sudo > /dev/null 2>&1; then # Try to invoke it with sudo trashman_echo "You're running as a regular user, trying to re-invoke the command using sudo..." sudo $PROGRAM $action $package -- cgit v1.2.3