]> gitweb.fluxo.info Git - trashman.git/commitdiff
Fix: redirection
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 6 Dec 2020 01:46:08 +0000 (22:46 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 6 Dec 2020 01:46:08 +0000 (22:46 -0300)
share/trashman/trashman/functions

index 48700cd72f9821ecad7903ce55733723d390059b..a29ab4f0a9c2872b27ca7f7d86ca4d3ac6eff179 100644 (file)
@@ -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