aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2020-12-05 22:46:08 -0300
committerSilvio Rhatto <rhatto@riseup.net>2020-12-05 22:46:08 -0300
commit299719becdf9e6e1f7889d61ead45b7023811d43 (patch)
tree038280d9125ebf172ba4c02b4885b49d414ab23c
parenta0a5fc9b66ea81459dbe6674d218a154b183bdf0 (diff)
downloadtrashman-299719becdf9e6e1f7889d61ead45b7023811d43.tar.gz
trashman-299719becdf9e6e1f7889d61ead45b7023811d43.tar.bz2
Fix: redirection
-rw-r--r--share/trashman/trashman/functions2
1 files changed, 1 insertions, 1 deletions
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