summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmodereset2
1 files changed, 1 insertions, 1 deletions
diff --git a/modereset b/modereset
index 84b0d35..166421e 100755
--- a/modereset
+++ b/modereset
@@ -5,7 +5,7 @@ export local confdir="/etc/portage"
reset_current_mode() {
if [ -d ""$portagedir"/.git" ] ; then
- rm -rf $(find "$portagedir" -mindepth 1 | grep -v "distfiles" | grep -v "packages")
+ find "$portagedir" -mindepth 1 -name "packages" -prune -o -name "distfiles" -prune -o -exec rm -rf {} \; > /dev/null 2>&1
rm ""$confdir"/make.conf"
rm ""$confdir"/make.profile"
rm "$confdir"