]> gitweb.fluxo.info Git - trashman.git/commitdiff
Export SUDO
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 7 Apr 2018 13:36:16 +0000 (10:36 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 7 Apr 2018 13:36:16 +0000 (10:36 -0300)
share/trashman/trashman/functions

index a870736f93857a684e89bbbd0f5b1a09aff1c90d..78d527ba6b11ce12e9f7f95cc6cd47a0e402b07a 100644 (file)
@@ -221,6 +221,6 @@ trashman_check_root() {
 # Check for sudo
 trashman_check_sudo () {
   if [ "`whoami`" != "root" ]; then
-    SUDO="sudo"
+    export SUDO="sudo"
   fi
 }