Commit 67d7ff8a authored by AlmAck's avatar AlmAck
Browse files

we don't need to call sudo to remove the cache

both folder _repo/ and files belong to the logged user
parent 866a0538
...@@ -178,8 +178,7 @@ move_to_cache() { ...@@ -178,8 +178,7 @@ move_to_cache() {
fi fi
local cache=/var/cache/pacman/pkg local cache=/var/cache/pacman/pkg
msg "Moving packages to «$cache»" msg "Moving packages to «$cache»"
sudo -v mv $* $cache
sudo mv $* $cache
} }
# performs a remote lock over a repository # performs a remote lock over a repository
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment