aboutsummaryrefslogtreecommitdiff
path: root/trashman
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2020-12-05 22:03:53 -0300
committerSilvio Rhatto <rhatto@riseup.net>2020-12-05 22:03:53 -0300
commita0a5fc9b66ea81459dbe6674d218a154b183bdf0 (patch)
tree9756021188b3ec988cd60eeb861ea4b0977974b6 /trashman
parent87bfedf023968d831735b4450932c055ec46e1a3 (diff)
downloadtrashman-a0a5fc9b66ea81459dbe6674d218a154b183bdf0.tar.gz
trashman-a0a5fc9b66ea81459dbe6674d218a154b183bdf0.tar.bz2
Feat: trashman: try to invoke with sudo if user is not root
Diffstat (limited to 'trashman')
-rwxr-xr-xtrashman2
1 files changed, 1 insertions, 1 deletions
diff --git a/trashman b/trashman
index 8ffa0b4..32fa6e2 100755
--- a/trashman
+++ b/trashman
@@ -91,7 +91,7 @@ else
# Checking for privileges
if [ "$BASENAME" = "trashman" ]; then
- trashman_check_root $ACTION
+ trashman_check_root $ACTION $package
else
trashman_check_sudo
fi